summaryrefslogtreecommitdiffstats
path: root/jv_parse.h
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-12-27 01:56:23 +0000
committerStephen Dolan <mu@netsoc.tcd.ie>2012-12-27 01:56:23 +0000
commitd327772dfc78ad49f46fbf583418e33abc0b59d2 (patch)
tree5a6105e6f89eb921d1b6985f77ace21364067196 /jv_parse.h
parentcedda2084d2f6b331ba0a73e05f0b77ee7995c86 (diff)
JSON parsing error messages now specify a location of the error.
Should help with #53.
Diffstat (limited to 'jv_parse.h')
-rw-r--r--jv_parse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/jv_parse.h b/jv_parse.h
index 5958316a..1d538c12 100644
--- a/jv_parse.h
+++ b/jv_parse.h
@@ -16,6 +16,8 @@ struct jv_parser {
char* tokenbuf;
int tokenpos;
int tokenlen;
+
+ int line, column;
struct dtoa_context dtoa;