Josh Haberman
c358bb42fd
A few more Google fixes.
6 years ago
Josh Haberman
76033b3a65
Correct TextPrinterPtr.
6 years ago
Josh Haberman
2719bcff0d
Fixes for Google-internal tests.
6 years ago
Joshua Haberman
9bc7973e38
Fixes for Google import.
6 years ago
Joshua Haberman
f4532ab273
Properly align the arena.
6 years ago
Joshua Haberman
315c167bed
Some more fixes for PHP.
6 years ago
Joshua Haberman
04923fc26e
Some fixes for PHP.
6 years ago
Bo Yang
12a5297740
Fix empty FieldMask json encoding
6 years ago
Joshua Haberman
8cd3b9dfa9
Moved some definitions to def.h
6 years ago
Paul Yang
c7870e0f77
Supprot FieldMask json encoding/decoding. ( #147 )
6 years ago
Joshua Haberman
01557462cc
upb_symtab_add() returns upb_filedef* instead of bool.
6 years ago
Joshua Haberman
84fb01ad0f
Removed the JIT. Nobody was actually using it, and table-driven should achieve 80-90% of the perf.
6 years ago
Joshua Haberman
2c26f60dbb
Added some comments and reversed upb_arena_cleanup() args.
6 years ago
Joshua Haberman
9349b703a3
Fixed a few bugs surfaced by Ruby.
6 years ago
Joshua Haberman
f30c7f4acb
Take sinks by value.
6 years ago
Joshua Haberman
1508648f30
Build & fix the JIT.
6 years ago
Joshua Haberman
754b9f1cfd
All tests pass again!
6 years ago
Joshua Haberman
cb26d883d1
WIP.
6 years ago
Joshua Haberman
a9c375f8ea
Partway through refactoring of Arena.
6 years ago
Joshua Haberman
ef7c50223a
All tests pass again!
6 years ago
Joshua Haberman
48863ea0be
A lot more tests are working now.
6 years ago
Joshua Haberman
d2f9bec5c6
Removed old-style C++ handlers that relied on UB in favor of more normal ones.
6 years ago
Joshua Haberman
0553eff64a
upb_refcounted is gone! Some tests still to fix.
6 years ago
Josh Haberman
9ea6bb4678
Renamed upb_stringview -> upb_strview for C terseness.
6 years ago
Joshua Haberman
31e0997c1a
Some bugfixes.
6 years ago
Joshua Haberman
0ce9b81815
Fixed bugs in array accessors.
6 years ago
Joshua Haberman
d0c8bb84f4
WIP.
6 years ago
Joshua Haberman
c3011c1548
Fixed bug: make proto2 setters set hasbit.
6 years ago
Joshua Haberman
bc916f1d0f
Added "add" accessors for repeated fields.
6 years ago
Joshua Haberman
8afe0b03a3
Some fixes for Ruby.
6 years ago
Bo Yang
18563bee4c
Fix comments
6 years ago
Josh Haberman
9dd2446531
test_cpp is working!
6 years ago
Josh Haberman
5e958a8c05
test_json is working!
6 years ago
Joshua Haberman
377871f104
Got test_decoder working!
6 years ago
Joshua Haberman
380558922b
test_encoder passes! Other tests still need to be fixed.
6 years ago
Bo Yang
99600b4a0e
Fix generated file test
6 years ago
Joshua Haberman
aa2d5a609b
Fixed generated code for C++.
6 years ago
Joshua Haberman
e2c2121f20
Use some hazzers in def.c.
6 years ago
Joshua Haberman
10e682cf2a
Added hazzers.
6 years ago
Joshua Haberman
cf0a89ed69
Updated to use the new array accessors.
6 years ago
Joshua Haberman
6bcdaa1352
Changed generated array accessors to be more convenient.
6 years ago
Joshua Haberman
7ff8413a03
Ported some tests.
6 years ago
Joshua Haberman
0fed529ea1
WIP, more progress on refactoring.
6 years ago
Bo Yang
375a25423e
Mark unused parameter
6 years ago
Bo Yang
915806ea8d
Remove unused code
6 years ago
Bo Yang
b39dbb9d40
Add support for encoding Any in json
6 years ago
Joshua Haberman
336402b4d7
WIP, core library compiles now.
6 years ago
Paul Yang
13c59cb051
Implement json decoding for Any message. ( #130 )
...
* Implement json decoding for Any message.
type url may not appear as the first value in json. As a result,
other data cannot be resolved before resolving type url. To solve that,
this change caches the start and end position of unparsed values and
resolve them in end_any_object when type url has been resolved.
* Handle Any in switch
* Update json parser size
* Fix comments
* Sync upstream
* Add dependency on upb_pb for upb_json
* Debug failed test
* Fix cmake
* Update test generated files
* Remove debug tests
6 years ago
Josh Haberman
2655ed9cf5
Bazel builds everything except conformance_upb.
6 years ago
Paul Yang
3c742bfdc8
Fix json ignore unknown ( #128 )
...
* Fix json ignore unknown
Previously, there were several problems with ignoring unknown in json.
1) After finding a field is unknown, the parser's state is not changed. Thus, there is no way to distinguish whether the parser is dealing with an unknown field or it's just a top level message.
2) Several method didn't respect unknown field, e.g., start_object, end_bool, start_array.
* Update json parser size
* Update json parser size
6 years ago