------------------------------
Version 2.0b2, 04 April 1997
- $Id: README,v 1.5 1999/07/26 04:28:07 roberts Exp $
+ $Id: README,v 1.6 1999/07/26 04:45:52 roberts Exp $
Copyright (c) 1996 Open Market, Inc.
See the file "LICENSE.TERMS" for information on usage and redistribution
of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Changes with devkit 2.1.1
-------------------------
+ *) Remove some debugging code and clean up some gcc warnings in cgi-fcgi.c.
+
*) Add multithread support to the fcgiapp lib and an example multithreaded
application, threaded.c. Based on work by Dennis Payne
<dpayne@softscape.com> and Gene Sokolov <hook@aktrad.ru>.
*/
#ifndef lint
-static const char rcsid[] = "$Id: cgi-fcgi.c,v 1.2 1999/01/30 22:33:23 roberts Exp $";
+static const char rcsid[] = "$Id: cgi-fcgi.c,v 1.3 1999/07/26 04:45:52 roberts Exp $";
#endif /* not lint */
#include <stdio.h>
*
*----------------------------------------------------------------------
*/
-static buildNameValueHeaderCalls = 0; /* XXX: for testing */
-
static void FCGIUtil_BuildNameValueHeader(
int nameLen,
int valueLen,
unsigned char *startHeaderBuffPtr = headerBuffPtr;
ASSERT(nameLen >= 0);
- if(nameLen < 0x80 && (buildNameValueHeaderCalls & 1) == 0) {
+ if (nameLen < 0x80 == 0) {
*headerBuffPtr++ = nameLen;
} else {
*headerBuffPtr++ = (nameLen >> 24) | 0x80;
*headerBuffPtr++ = nameLen;
}
ASSERT(valueLen >= 0);
- if(valueLen < 0x80 && (buildNameValueHeaderCalls & 2) == 0) {
+ if (valueLen < 0x80 == 0) {
*headerBuffPtr++ = valueLen;
} else {
*headerBuffPtr++ = (valueLen >> 24) | 0x80;
*headerBuffPtr++ = valueLen;
}
*headerLenPtr = headerBuffPtr - startHeaderBuffPtr;
- buildNameValueHeaderCalls++;
}
\f
return err;
}
\f
-void main(int argc, char **argv, char **envp)
+int main(int argc, char **argv, char **envp)
{
int count;
FCGX_Stream *paramsStream;
} else {
FCGIexit(999);
}
+
+ exit(0);
}