|
From: | rocco brandi |
Subject: | Re: [lwip-users] CGI handler initialization |
Date: | Fri, 15 Jul 2011 15:22:03 +0100 (BST) |
thanks Simon. if I set: const tCGI myCGI[]={{string, extract}}; http_set_cgi_handlers(myCGI,1); the compiler warn: error: syntax error before numeric constant warning: type defaults to 'int' in declaration of 'http_set_cgi_handlers' error: conflicting types for 'http_set_cgi_handlers' error: previous declaration of 'http_set_cgi_handlers' was here warning: data definition has no type or storage class warning: no newline at end of file if I set: const tCGI myCGI={string, extract}; http_set_cgi_handlers(&myCGI,1); the complier: error: syntax error before '&' token warning: type defaults to 'int' in declaration of 'http_set_cgi_handlers' error: conflicting types for 'http_set_cgi_handlers' error: previous declaration of 'http_set_cgi_handlers' was here warning: data definition has no type or storage class by the way: is the type definition of my function "extract" correct? I define it const char *(extract)() but in the definiton of the handler there is: typedef const char *(*tCGIHandler)(int iIndex, int iNumParams, char *pcParam[], char *pcValue[]); should I set tCGIHandler *(extract)() ? --- Ven 15/7/11, Simon Goldschmidt <address@hidden> ha scritto:
|
[Prev in Thread] | Current Thread | [Next in Thread] |