summaryrefslogtreecommitdiff
path: root/upb
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2015-07-15 10:20:37 -0700
committerJosh Haberman <jhaberman@gmail.com>2015-07-15 10:37:45 -0700
commit334bab5d8deb3b78cf1320eac180a145277aab86 (patch)
treebe0d80c0167a07c31f605967067ac2fcec6bf119 /upb
parent5506b5894300d1e413a8b5d7ae8c7d8efa8544c7 (diff)
Updated JSON parser size.
Diffstat (limited to 'upb')
-rw-r--r--upb/json/parser.c4
-rw-r--r--upb/json/parser.h2
-rw-r--r--upb/json/parser.rl4
3 files changed, 5 insertions, 5 deletions
diff --git a/upb/json/parser.c b/upb/json/parser.c
index d2e3854..07132fa 100644
--- a/upb/json/parser.c
+++ b/upb/json/parser.c
@@ -1575,8 +1575,8 @@ upb_json_parser *upb_json_parser_create(upb_env *env, upb_sink *output) {
upb_sink_reset(&p->top->sink, output->handlers, output->closure);
p->top->m = upb_handlers_msgdef(output->handlers);
- /* If this fails, uncomment and increase the value in parser.h.
- * fprintf(stderr, "%zd\n", upb_env_bytesallocated(env) - size_before); */
+ /* If this fails, uncomment and increase the value in parser.h. */
+ fprintf(stderr, "%zd\n", upb_env_bytesallocated(env) - size_before);
assert(upb_env_bytesallocated(env) - size_before <= UPB_JSON_PARSER_SIZE);
return p;
}
diff --git a/upb/json/parser.h b/upb/json/parser.h
index 8e608e8..e8f34fe 100644
--- a/upb/json/parser.h
+++ b/upb/json/parser.h
@@ -27,7 +27,7 @@ UPB_DECLARE_TYPE(upb::json::Parser, upb_json_parser)
* constructed. This hint may be an overestimate for some build configurations.
* But if the parser library is upgraded without recompiling the application,
* it may be an underestimate. */
-#define UPB_JSON_PARSER_SIZE 3568
+#define UPB_JSON_PARSER_SIZE 3704
#ifdef __cplusplus
diff --git a/upb/json/parser.rl b/upb/json/parser.rl
index fa71469..8896d7b 100644
--- a/upb/json/parser.rl
+++ b/upb/json/parser.rl
@@ -1310,8 +1310,8 @@ upb_json_parser *upb_json_parser_create(upb_env *env, upb_sink *output) {
upb_sink_reset(&p->top->sink, output->handlers, output->closure);
p->top->m = upb_handlers_msgdef(output->handlers);
- /* If this fails, uncomment and increase the value in parser.h.
- * fprintf(stderr, "%zd\n", upb_env_bytesallocated(env) - size_before); */
+ /* If this fails, uncomment and increase the value in parser.h. */
+ /* fprintf(stderr, "%zd\n", upb_env_bytesallocated(env) - size_before); */
assert(upb_env_bytesallocated(env) - size_before <= UPB_JSON_PARSER_SIZE);
return p;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback