summaryrefslogtreecommitdiff
path: root/ext/json/ext/parser/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/ext/parser/parser.h')
-rw-r--r--ext/json/ext/parser/parser.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/json/ext/parser/parser.h b/ext/json/ext/parser/parser.h
index cf3e558..fd61a79 100644
--- a/ext/json/ext/parser/parser.h
+++ b/ext/json/ext/parser/parser.h
@@ -36,9 +36,9 @@ typedef unsigned char UTF8; /* typically 8 bits */
typedef struct JSON_ParserStruct {
VALUE dwrapped_parser;
VALUE Vsource;
- const char *source;
+ char *source;
long len;
- const char *memo;
+ char *memo;
VALUE create_id;
int max_nesting;
int current_nesting;
@@ -64,13 +64,13 @@ typedef struct JSON_ParserStruct {
static UTF32 unescape_unicode(const unsigned char *p);
static int convert_UTF32_to_UTF8(char *buf, UTF32 ch);
-static const char *JSON_parse_object(JSON_Parser *json, const char *p, const char *pe, VALUE *result);
-static const char *JSON_parse_value(JSON_Parser *json, const char *p, const char *pe, VALUE *result);
-static const char *JSON_parse_integer(JSON_Parser *json, const char *p, const char *pe, VALUE *result);
-static const char *JSON_parse_float(JSON_Parser *json, const char *p, const char *pe, VALUE *result);
-static const char *JSON_parse_array(JSON_Parser *json, const char *p, const char *pe, VALUE *result);
-static VALUE json_string_unescape(VALUE result, const char *string, const char *stringEnd);
-static const char *JSON_parse_string(JSON_Parser *json, const char *p, const char *pe, VALUE *result);
+static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result);
+static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result);
+static char *JSON_parse_integer(JSON_Parser *json, char *p, char *pe, VALUE *result);
+static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result);
+static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result);
+static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd);
+static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result);
static VALUE convert_encoding(VALUE source);
static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self);
static VALUE cParser_parse(VALUE self);