Joshua Haberman
151ebc8a29
Fixed oneof case accessor to cast to enum for C++.
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
e86e198690
Changed enums to be open int32_t.
...
This also fixes a bug where generated code wouldn't
compile if the field's enum was defined in another file.
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
Joshua Haberman
cb26d883d1
WIP.
6 years ago
Josh Haberman
9ea6bb4678
Renamed upb_stringview -> upb_strview for C terseness.
6 years ago
Josh Haberman
aac4d03420
Standardize on package_name_Message_mutable_foo() for mutable accessors.
6 years ago
Joshua Haberman
0ce9b81815
Fixed bugs in array accessors.
6 years ago
Joshua Haberman
c3011c1548
Fixed bug: make proto2 setters set hasbit.
6 years ago
Joshua Haberman
618981a60f
Added mutable_ accessor for submessages.
6 years ago
Joshua Haberman
bc916f1d0f
Added "add" accessors for repeated fields.
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
Joshua Haberman
aa2d5a609b
Fixed generated code for C++.
6 years ago
Joshua Haberman
10e682cf2a
Added hazzers.
6 years ago
Joshua Haberman
6bcdaa1352
Changed generated array accessors to be more convenient.
6 years ago
Vishal Powar
0811b6fead
Explicit cast when creating a new struct
6 years ago
Josh Haberman
5f575995b5
Added upb compiler written in C++ as a normal protoc plugin.
6 years ago