comparison src/c/static.c @ 2137:8ecbd1100227

Set dummy header lookup function in static.c
author Adam Chlipala <adam@chlipala.net>
date Sun, 03 May 2015 09:40:13 -0400
parents c93fbd139732
children c39c48696393
comparison
equal deleted inserted replaced
2136:75c8f8e3f5d0 2137:8ecbd1100227
14 vprintf(fmt, ap); 14 vprintf(fmt, ap);
15 } 15 }
16 16
17 static uw_loggers loggers = {NULL, log_, log_}; 17 static uw_loggers loggers = {NULL, log_, log_};
18 18
19 static char *get_header(void *data, const char *h) {
20 return NULL;
21 }
22
19 int main(int argc, char *argv[]) { 23 int main(int argc, char *argv[]) {
20 uw_context ctx; 24 uw_context ctx;
21 failure_kind fk; 25 failure_kind fk;
22 26
23 if (argc != 2) { 27 if (argc != 2) {
25 return 1; 29 return 1;
26 } 30 }
27 31
28 ctx = uw_init(0, &loggers); 32 ctx = uw_init(0, &loggers);
29 uw_set_app(ctx, &uw_application); 33 uw_set_app(ctx, &uw_application);
34 uw_set_headers(ctx, get_header, NULL);
30 uw_initialize(ctx); 35 uw_initialize(ctx);
31 36
32 while (1) { 37 while (1) {
33 fk = uw_begin(ctx, argv[1]); 38 fk = uw_begin(ctx, argv[1]);
34 39