Permalink
Browse files

Style

Make function definition style more consistent in request.c.
  • Loading branch information...
1 parent 90044c0 commit 8024f40601300ec7eccf893f363dc679e53351db @patricklucas patricklucas committed Feb 28, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 bjoern/request.c
View
@@ -108,29 +108,33 @@ void Request_parse(Request* request, const char* data, const size_t data_len)
Py_DECREF(val); \
} while(0)
-static int on_message_begin(http_parser* parser)
+static int
+on_message_begin(http_parser* parser)
{
REQUEST->headers = PyDict_New();
PARSER->field = (string){NULL, 0};
PARSER->value = (string){NULL, 0};
return 0;
}
-static int on_path(http_parser* parser, char* path, size_t len)
+static int
+on_path(http_parser* parser, char* path, size_t len)
{
if(!(len = unquote_url_inplace(path, len)))
return 1;
_set_header_free_value(_PATH_INFO, PyString_FromStringAndSize(path, len));
return 0;
}
-static int on_query_string(http_parser* parser, const char* query, size_t len)
+static int
+on_query_string(http_parser* parser, const char* query, size_t len)
{
_set_header_free_value(_QUERY_STRING, PyString_FromStringAndSize(query, len));
return 0;
}
-static int on_header_field(http_parser* parser, const char* field, size_t len)
+static int
+on_header_field(http_parser* parser, const char* field, size_t len)
{
if(PARSER->value.data) {
/* Store previous header and start a new one */

0 comments on commit 8024f40

Please sign in to comment.