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
Anna R
de1bc11663
Split port into its own target, add msg.h to :legacy_msg_reflection
5 years ago
Joshua Haberman
2a85bef825
Generated code interface for maps is complete, though not yet tested.
5 years ago
Joshua Haberman
23825332e1
WIP.
5 years ago
Esun Kim
905d1913f7
No // comment
5 years ago
Esun Kim
ce4c4fd76b
Clean up MSVC port for vsnprintf
5 years ago
Esun Kim
bc6d9518e1
Make it use builtin functions on clang
5 years ago
Esun Kim
401285b2f1
Use UPB_LIKELY only when GNUC
5 years ago
Esun Kim
7a1e6aa84b
Support MSVC prior to 2015
5 years ago
Esun Kim
f179e23e5b
Support Visual Studio
5 years ago
Nicolas "Pixel" Noble
4d8af5e4b9
Adding (v)snprintf and va_copy for Windows.
5 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
ad905b08f5
Fixed amalgamation to properly include stdint.h first for UPB_SIZE().
6 years ago
Joshua Haberman
33d1231ead
Added port_def.inc and port_undef.inc.
6 years ago