Mateusz Loskot, mateusz at loskot dot net
* Add stddef.h include
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@19
327403b1-1117-474d-bef2-
5cb71233fd97
0.8
* Add macros to enable compiling out debug code
Geoffrey Young, geoff at modperlcookbook dot org
+ * Fix bug with use of capital E in numbers with exponents
+ Mateusz Loskot, mateusz at loskot dot net
+ * Add stddef.h include
0.7
* Add escaping of backslash to json output
#include <stdio.h>
#include <stdlib.h>
+#include <stddef.h>
#include <string.h>
#include "debug.h"
#define REFCOUNT_DEBUG 1
-char *json_number_chars = "0123456789.+-e";
+char *json_number_chars = "0123456789.+-eE";
char *json_hex_chars = "0123456789abcdef";
#ifdef REFCOUNT_DEBUG
#include <stdio.h>
#include <stdlib.h>
+#include <stddef.h>
#include <ctype.h>
#include <string.h>
case json_tokener_state_number:
if(c && strchr(json_number_chars, c)) {
printbuf_memappend(tok->pb, &c, 1);
- if(c == '.' || c == 'e') tok->is_double = 1;
+ if(c == '.' || c == 'e' || c == 'E') tok->is_double = 1;
} else {
int numi;
double numd;
char *str;
struct printbuf *pb;
int depth, is_double, st_pos, char_offset;
- enum json_tokener_error err;
+ ptrdiff_t err;
unsigned int ucs_char;
char quote_char;
struct json_tokener_srec stack[JSON_TOKENER_MAX_DEPTH];
#include <stdio.h>
#include <stdlib.h>
+#include <stddef.h>
#include <limits.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
+#include <stddef.h>
#include <string.h>
#include "json.h"
#include <stdio.h>
#include <stdlib.h>
+#include <stddef.h>
#include <string.h>
#include "json.h"