diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2018-12-08 13:45:12 +0100 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2018-12-08 13:45:12 +0100 |
commit | bfa3c015bb8de950d0e6b0076be89df4bc37fba7 (patch) | |
tree | 8f0571635334582029f76e22160ef051fe510c5d /upb/json/parser.h | |
parent | 14c96a143c63a01c1080a23d9e1c0196d06f0e5e (diff) | |
parent | 73ccf4a7c7d8a1a26d1258f44a37c1fc02f4b14b (diff) |
Merge branch 'master' into defcleanup
Diffstat (limited to 'upb/json/parser.h')
-rw-r--r-- | upb/json/parser.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/upb/json/parser.h b/upb/json/parser.h index 15beaeb..fb5fd2f 100644 --- a/upb/json/parser.h +++ b/upb/json/parser.h @@ -29,7 +29,7 @@ UPB_DECLARE_DERIVED_TYPE(upb::json::ParserMethod, upb::RefCounted, * 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 4672 +#define UPB_JSON_PARSER_SIZE 5712 #ifdef __cplusplus @@ -38,6 +38,7 @@ UPB_DECLARE_DERIVED_TYPE(upb::json::ParserMethod, upb::RefCounted, class upb::json::Parser { public: static Parser* Create(Environment* env, const ParserMethod* method, + const SymbolTable* symtab, Sink* output, bool ignore_json_unknown); BytesSink* input(); @@ -72,6 +73,7 @@ UPB_BEGIN_EXTERN_C upb_json_parser* upb_json_parser_create(upb_env* e, const upb_json_parsermethod* m, + const upb_symtab* symtab, upb_sink* output, bool ignore_json_unknown); upb_bytessink *upb_json_parser_input(upb_json_parser *p); @@ -93,8 +95,10 @@ UPB_END_EXTERN_C namespace upb { namespace json { inline Parser* Parser::Create(Environment* env, const ParserMethod* method, + const SymbolTable* symtab, Sink* output, bool ignore_json_unknown) { - return upb_json_parser_create(env, method, output, ignore_json_unknown); + return upb_json_parser_create( + env, method, symtab, output, ignore_json_unknown); } inline BytesSink* Parser::input() { return upb_json_parser_input(this); |