We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a79195 commit 88b2be6Copy full SHA for 88b2be6
json_parser.c
@@ -54,8 +54,18 @@ static const int __whitespace_map[256] = {
54
1,
55
};
56
57
-#define isspace(c) __whitespace_map[(unsigned char)(c)]
58
-#define isdigit(c) ((c) >= '0' && (c) <= '9')
+static int __json_isspace(char c)
+{
59
+ return __whitespace_map[(unsigned char)c];
60
+}
61
+
62
+static int __json_isdigit(char c)
63
64
+ return c >= '0' && c <= '9';
65
66
67
+#define isspace(c) __json_isspace(c)
68
+#define isdigit(c) __json_isdigit(c)
69
70
static int __json_string_length(const char *cursor, size_t *len)
71
{
0 commit comments