Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | more cson portability fixes, thanks to Robert Engelhardt and Joe Mistachkin. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | json |
Files: | files | file ages | folders |
SHA1: |
afd36e987ca1f2841bd2d819e64804c1 |
User & Date: | stephan 2011-09-16 13:39:30.210 |
Original Comment: | more cson portability fixes, thanks to Robert Engelhardt and Mistachkin. |
Context
2011-09-16
| ||
16:38 | fixed an inconsistency in the CLI/CGI args/path handling. Non-CGI server mode is still broken b/c we do not yet have the PATH_INFO (or equivalent) data. ... (check-in: 73591cc7 user: stephan tags: json) | |
13:39 | more cson portability fixes, thanks to Robert Engelhardt and Joe Mistachkin. ... (check-in: afd36e98 user: stephan tags: json) | |
13:34 | s/unlink/remove/ for Windows build (thanks again to Robert Engelhardt). ... (check-in: ea8d28ac user: stephan tags: json) | |
Changes
Changes to src/cson_amalgamation.c.
︙ | ︙ | |||
6425 6426 6427 6428 6429 6430 6431 | #include <stdlib.h> /* environ, getenv(), atexit() */ #include <ctype.h> /* isspace() */ #include <string.h> /* strlen() */ #include <stdarg.h> #include <time.h> #include <locale.h> /* setlocale(), needed for JSON parser. */ | > | > > > | 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 | #include <stdlib.h> /* environ, getenv(), atexit() */ #include <ctype.h> /* isspace() */ #include <string.h> /* strlen() */ #include <stdarg.h> #include <time.h> #include <locale.h> /* setlocale(), needed for JSON parser. */ #if CSON_ENABLE_UNIX # define CSON_CGI_USE_SIGNALS 1 #else # define CSON_CGI_USE_SIGNALS 0 #endif /* If RNG_FILENAME evaluates to true then we use that file for getting random bytes for session IDs. FIXME: we effectively leak a file handle if this is enabled. */ #if 0 # define RNG_FILENAME "/dev/urandom" |
︙ | ︙ |
Changes to src/cson_amalgamation.h.
︙ | ︙ | |||
33 34 35 36 37 38 39 | */ #if defined(__cplusplus) extern "C" { #endif | | | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | */ #if defined(__cplusplus) extern "C" { #endif #if defined(_WIN32) || defined(_WIN64) # define CSON_ENABLE_UNIX 0 #else # define CSON_ENABLE_UNIX 1 #endif /** @typedef some_long_int_type cson_int_t |
︙ | ︙ |