- Timestamp:
- Oct 22, 2014, 7:34:22 PM (10 years ago)
- Location:
- branches/PublicaMundi_David-devel/thirds/cgic206
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PublicaMundi_David-devel/thirds/cgic206/cgic.c
r379 r511 123 123 static cgiParseResultType cgiParseFormInput(char *data, int length); 124 124 static void cgiSetupConstants(); 125 staticvoid cgiFreeResources();125 void cgiFreeResources(); 126 126 static int cgiStrEqNc(char *s1, char *s2); 127 127 static int cgiStrBeginsNc(char *s1, char *s2); … … 130 130 131 131 132 int main(int argc, char *argv[]) {132 int cgiMain_init(int argc, char *argv[]) { 133 133 int result; 134 134 char *cgiContentLengthString; 135 135 char *e; 136 while (FCGI_Accept() >= 0) {137 136 cgiSetupConstants(); 138 137 cgiGetenv(&cgiServerSoftware, "SERVER_SOFTWARE"); … … 310 309 } 311 310 } 312 result = cgiMain();313 cgiFreeResources();314 }315 FCGI_Finish();316 311 return result; 317 312 } … … 1177 1172 } 1178 1173 1179 staticvoid cgiFreeResources() {1174 void cgiFreeResources() { 1180 1175 cgiFormEntry *c = cgiFormEntryFirst; 1181 1176 cgiFormEntry *n; -
branches/PublicaMundi_David-devel/thirds/cgic206/cgic.h
r348 r511 415 415 int cgiMain(); 416 416 extern 417 #ifdef __cplusplus 418 "C" 419 #endif 420 int cgiMain_init(); 421 422 423 extern 417 418 424 419 #ifdef __cplusplus 425 420 "C" … … 454 449 cgiFormResultType cgiValueEscapeData(char *data, int len); 455 450 451 int cgiMain_init(int argc, char *argv[]); 452 453 void cgiFreeResources(); 454 456 455 #endif /* CGI_C */ 457 456
Note: See TracChangeset
for help on using the changeset viewer.