Mercurial > urweb
comparison src/c/cgi.c @ 1446:36f7d1debb37
Each context gets its own non-repeating sequence of source numbers
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 09 Apr 2011 14:36:47 -0400 |
parents | add5ae41969e |
children | ea131de361d9 |
comparison
equal
deleted
inserted
replaced
1445:6e6f1643c4e9 | 1446:36f7d1debb37 |
---|---|
54 | 54 |
55 static void log_debug(void *data, const char *fmt, ...) { | 55 static void log_debug(void *data, const char *fmt, ...) { |
56 } | 56 } |
57 | 57 |
58 int main(int argc, char *argv[]) { | 58 int main(int argc, char *argv[]) { |
59 uw_context ctx = uw_request_new_context(&uw_application, NULL, log_error, log_debug); | 59 uw_context ctx = uw_request_new_context(0, &uw_application, NULL, log_error, log_debug); |
60 uw_request_context rc = uw_new_request_context(); | 60 uw_request_context rc = uw_new_request_context(); |
61 request_result rr; | 61 request_result rr; |
62 char *method = getenv("REQUEST_METHOD"), | 62 char *method = getenv("REQUEST_METHOD"), |
63 *path = getenv("SCRIPT_NAME"), *path_info = getenv("PATH_INFO"), | 63 *path = getenv("SCRIPT_NAME"), *path_info = getenv("PATH_INFO"), |
64 *query_string = getenv("QUERY_STRING"); | 64 *query_string = getenv("QUERY_STRING"); |