Joshua Haberman
a6c54729df
Added UPB_ASSUME(), to work around warnings when optimization is enabled:
...
upb/json/parser.rl: In function 'end_member.isra.150':
bazel-out/k8-opt/bin/upb.c:5536:13: error: 'sel' may be used uninitialized in this function [-Werror=maybe-uninitialized]
upb_func *ret = (upb_func *)h->table[s].func;
5 years ago
Joshua Haberman
9e1f89ef2c
Merge pull request #224 from haberman/maps
...
Implemented support for maps (generated & reflection), and improved reflection API
5 years ago
Joshua Haberman
ce0496eb86
Merge branch 'master' into maps
5 years ago
Joshua Haberman
e911aae5f6
Factored upb_map_entry into a shared place.
5 years ago
Joshua Haberman
d8f3d6f9d4
Merge pull request #233 from annarev/add_port_dependencies
...
Add port dependencies
5 years ago
Anna R
a27429f265
Add port_def.inc and port_undef.inc to generated code hdrs
5 years ago
Anna R
3797ad2217
port should not be public
5 years ago
Anna R
578dc32208
Set port visibility to public.
5 years ago
Anna R
fc4941183f
Add :port dependencies to libraries that include it
5 years ago
Joshua Haberman
4c1a97ae9c
Merge branch 'master' into maps
5 years ago
Joshua Haberman
7d1abedbdd
Merge pull request #232 from annarev/forward_assert_changes
...
Add correctness asserts to upb_addmsg
5 years ago
Joshua Haberman
1b131ca544
Merge pull request #231 from annarev/fix_build_for_sync
...
A few build fixes
5 years ago
Anna R
d2389ba261
Add correctness asserts to upb_addmsg
5 years ago
Anna R
de1bc11663
Split port into its own target, add msg.h to :legacy_msg_reflection
5 years ago
Joshua Haberman
f593289087
Merge branch 'master' into maybe-deps
5 years ago
Joshua Haberman
abdf14937d
Merge pull request #216 from XrXr/use-memcpy-to-do-unaligned-read
...
Use memcpy to perform unaligned reads
5 years ago
Joshua Haberman
47ab661706
Merge pull request #227 from lizan/absl_workspace_name
...
bazel: use canonical repository name for absl
5 years ago
Anna R
0b63c75164
Do not strip :descriptor_upbreflection and make some headers public that are used outside of the their module
5 years ago
Fredrik Medley
0c2046f732
Make workspace_deps.bzl overridable using maybe()
...
Make it possible for a user to define a different version of the upb
dependencies by wrapping them in maybe(). Then the upb dependencies will
not be added if they previously have been declared.
5 years ago
Joshua Haberman
59fe620fa0
Merge branch 'maps' of github.com:haberman/upb into maps
5 years ago
Joshua Haberman
744f8588da
Cleanup to remove END_GROUP from descriptortype -> type tables.
5 years ago
Joshua Haberman
f9efbcd5d6
Added missing append fallback.
5 years ago
Joshua Haberman
c4b64e6a20
Slight simplification: NULL arena will avoid creating a new sub-object.
5 years ago
Joshua Haberman
d541566a7b
Moved upb_array_new() to upb/reflection.h where it belongs.
5 years ago
Joshua Haberman
059f226d41
Unit tests for maps generated code.
5 years ago
Joshua Haberman
520ddc1f11
c89 fixes.
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
6c2d732082
Fixed upb's map parsing to overwrite existing elements.
5 years ago
Joshua Haberman
090a0c33a4
Fixed VLA error and rewrote the map parsing code to be clearer.
5 years ago
Joshua Haberman
0fbae939d2
Removed stray fprintf().
5 years ago
Joshua Haberman
572ba75d1c
Removed comma after final enumerator.
5 years ago
Joshua Haberman
c9135e5276
Fixed the build.
5 years ago
Joshua Haberman
d040aa1302
Merge branch 'master' into maps
5 years ago
Joshua Haberman
e18541a9dd
Added some missing files.
5 years ago
Joshua Haberman
2a25fd557e
Merge pull request #226 from lizan/upb_bazel_version
...
bazel: prefix bazel_version repository
5 years ago
Joshua Haberman
92509cc3b2
Rename lua_test.
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
6ae4a2694c
Merge branch 'maps' of github.com:haberman/upb into maps
5 years ago
Joshua Haberman
cc6db9fb0b
Fixed crash bug.
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
5239655b99
WIP.
5 years ago
Joshua Haberman
23825332e1
WIP.
5 years ago