Klaus Demo ~jonashaag/bjoern / 67a4f07
Use Py_ssize_t rather than ssize_t. Jonas Haag 9 years ago
2 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
11 TODO/BUGS
22 =================
33
4 * ssize_t -> Py_ssize_t
54 * wsgi_getheaders: get rid of buf_write (but memcpy is bad for that small strings)
65 * wsgi_iterable_get_next_chunk: refactor
76 * sendfile
127127
128128 Request* request = REQUEST_FROM_WATCHER(watcher);
129129
130 ssize_t read_bytes = read(
130 Py_ssize_t read_bytes = read(
131131 request->client_fd,
132132 read_buf,
133133 READ_BUFFER_SIZE
248248 static bool
249249 send_chunk(Request* request)
250250 {
251 ssize_t chunk_length;
252 ssize_t sent_bytes;
251 Py_ssize_t chunk_length;
252 Py_ssize_t sent_bytes;
253253
254254 assert(request->current_chunk != NULL);
255255 assert(!(request->current_chunk_p == PyString_GET_SIZE(request->current_chunk)