Joshua Haberman
aacdcf8b91
The compile is now clean of -Wshorten-64-to-32 warnings.
5 years ago
Joshua Haberman
a292261aeb
Added JSON decoder to conformance tests, and fixed tons of bugs.
...
We are now down to only 10 conformance failures across all of upb.
5 years ago
Joshua Haberman
b409f8cd85
Fixed code generator for upbdefs when a file has no messages.
5 years ago
Joshua Haberman
384cf15b0f
[json encoder] passes almost all conformance tests.
5 years ago
Joshua Haberman
02c89a8b15
Renamed textencode -> text_encode for greater readability. ( #249 )
5 years ago
Joshua Haberman
ca84145476
[decoder] fix for buf=NULL, size=0 case. ( #246 )
5 years ago
Joshua Haberman
4c6dcc3c6b
[textformat]: added missing newline when a message opens. ( #245 )
...
* [textformat]: added missing newline when a message opens.
* Added tostring() support to Lua that prints to text format.
Also fixed a gnarly bug that this exposed.
5 years ago
Joshua Haberman
3d955e684c
Added "extern C" blocks to textencode. ( #244 )
...
* Added "extern C" blocks to textencode.
* Added accidentally-deleted test_upb.lua, deleted unneeded test.proto.
5 years ago
Joshua Haberman
ca512852f3
Fixed parsing for string->double maps. ( #243 )
...
Map parsing/serializing relies on map entries always
having a predictable order. The code that generates
layout was not respecting this in the case of string
keys and primitive values.
5 years ago
Joshua Haberman
ce1a399a19
Text format serializer for upb_msg ( #242 )
...
* WIP, first version of encoder.
* More progress on text encoder.
* A lot of progress on the text printer.
* Added textencode header file.
* Text encoder now passes conformance tests.
These aren't very stringent though, and more testing is needed.
* Print text into static buffer. Passes all conformance tests.
* Fixed kokoro errors.
* Fix for indent depth when printing map fields.
5 years ago
Joshua Haberman
ad2eb65a4b
Refactored conformance_upb to use reflection, and fixed a decoder bug.
5 years ago
Joshua Haberman
f9efbcd5d6
Added missing append fallback.
5 years ago
Joshua Haberman
059f226d41
Unit tests for maps generated code.
5 years ago
Joshua Haberman
806c8c9c6e
Removed obsolete testing files.
5 years ago
Joshua Haberman
2a85bef825
Generated code interface for maps is complete, though not yet tested.
5 years ago
Joshua Haberman
7f5fe52dfa
Fixes for non-C89 code.
5 years ago
Joshua Haberman
382f92a87f
Maps encode and decode successfully!
5 years ago
Joshua Haberman
4c57b1fefd
More progress on Lua extension.
5 years ago
Joshua Haberman
d6c3152c0b
Added more Lua tests that are passing.
...
Also ripped out the ctype checking in upb_table, it
was not helpful (didn't help catch bugs) but was causing
problems.
5 years ago
Joshua Haberman
ae66e571d4
Fixed some bugs and added a few more tests.
5 years ago
Joshua Haberman
bfc86d3577
Fixed many bugs, basic Lua test passes!
5 years ago
Joshua Haberman
b518b06d75
Lua test program is loaded successfully.
5 years ago
Joshua Haberman
88d996132e
Added Lua main.c test driver program.
5 years ago
Joshua Haberman
626ec4bfcf
Everything builds, test pass except test_decoder.
5 years ago
Joshua Haberman
715718d5a5
Changed endsubmsg handler to return the closure of the submessage.
...
This is a behavior change to help out PHP for the lazy wrappers
optimization.
5 years ago
Esun Kim
6f9a9fb2fa
Rename MurmurHash2 to upb_murmur_hash2
5 years ago
Esun Kim
2c3a28e411
Add -Wstrict-prototypes option
5 years ago
Google-Autofuzz
8f19667786
modified fuzz config
6 years ago
Google AutoFuzz Team
47f4983fcc
Create README
6 years ago
Joshua Haberman
493e9b2614
Build fixes from fuzz target.
6 years ago
Google AutoFuzz Team
c4a8498103
Add simple fuzz target for upb
6 years ago
Joshua Haberman
901463e41e
Added benchmark of parsing.
6 years ago
Joshua Haberman
5e5e0cf24a
More Blaze fixes.
6 years ago
Joshua Haberman
151ebc8a29
Fixed oneof case accessor to cast to enum for C++.
6 years ago
Josh Haberman
cd9e1e6817
upb_proto_library() aspect is working, even for external repos.
6 years ago
Josh Haberman
f3c560122a
upb_proto_library() works for local project!
...
Doesn't work for remote projects yet though.
6 years ago
Joshua Haberman
cf35baa1ad
Moved macros from upb.h to port_def.inc to avoid leaking them to users. ( #160 )
...
* Use port_def.inc to prevent macros from leaking to users.
* Added helpful comments to port_def.inc/port_undef.inc.
6 years ago
Josh Haberman
32e3f394b4
A few small API tweaks.
...
- Foo_parsenew() -> Foo_parse().
- parse function takes plain (const char*, size_t) instead of
upb_strview. The latter is mainly useful for strings inside
message objects.
6 years ago
Shahid
afaa22eb3d
Update test_varint.c
6 years ago
Josh Haberman
22ad7121c2
Fixes for google3.
6 years ago
Josh Haberman
865876895d
Fixed tests and code.
6 years ago
Josh Haberman
0dbbfd1f80
Added missing functions.
6 years ago
Josh Haberman
8980f6db5c
text_printer.h now successfully compiles.
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
754b9f1cfd
All tests pass again!
6 years ago
Joshua Haberman
cb26d883d1
WIP.
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