Joshua Haberman
9a360ad43d
Moved legacy_msg_reflection.{c,h} -> reflection.{c.h}.
5 years ago
Joshua Haberman
dc58b657ee
New reflection API doesn't need types as parameters for map/array.
...
All tests are passing again.
5 years ago
Joshua Haberman
c486da3970
WIP.
5 years ago
Joshua Haberman
88b1026d26
Fixed leap year handling by reworking upb_mktime() -> upb_timegm().
...
The new function name also better reflects the semantics of the
function. Like timegm(), this function always converts to/from
UTC, not local time.
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
Joshua Haberman
1ed64db8c2
Fixed compiler error "error: control reaches end of non-void function".
5 years ago
Alan Wu
a73fd86c13
Use memcpy to perform unaligned reads
...
Creating and reading from unaligned pointers is UB and I'm trying to
run upb on a platform (GraalVM) that is sensitive to that unfortunately.
Recent compilers are smart enough to fold the memcpy down to a simple
memory load on platforms that support it, so this should mostly be a
aesthetic change.
5 years ago
Esun Kim
905d1913f7
No // comment
5 years ago
Joshua Haberman
29c30e9cb3
Fixed cache to properly insert by msgdef key.
5 years ago
Joshua Haberman
555b60b062
A memory safety fix, found by ASAN.
...
We cannot assume that the input string is NULL-terminated,
or read past "len." Instead we manually NULL-terminate it.
5 years ago
Joshua Haberman
ca4605b3af
Properly cache decoder methods, instead of regenerating every time.
...
This doesn't fully share bytecode. If you generate for message A
which has B as a sub-message, then generate B, B's code will be
generated twice. This could be optimized later if desired. But
this addresses the leak in PHP.
Also removed some obsolete JIT-only code.
5 years ago
Joshua Haberman
509f1e474f
Bugfix for boolean defaults.
5 years ago
Joshua Haberman
1461da5056
WIP.
5 years ago
Paul Yang
d3762e96cb
Accpet string for numeric wrappers ( #202 )
5 years ago
Esun Kim
6f9a9fb2fa
Rename MurmurHash2 to upb_murmur_hash2
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
3838f62aa5
Fixed ubsan error on memmove
5 years ago
Esun Kim
bc8b1a8f90
Fixed UBSAN issues
5 years ago
Esun Kim
98ae7806e9
Add extern C to upb_alloc_global
5 years ago
Esun Kim
a8bb192fa4
Fixed -Wshorten-64-to-32
5 years ago
Esun Kim
401285b2f1
Use UPB_LIKELY only when GNUC
5 years ago
Esun Kim
2c3a28e411
Add -Wstrict-prototypes option
5 years ago
Esun Kim
7a1e6aa84b
Support MSVC prior to 2015
5 years ago
Esun Kim
f179e23e5b
Support Visual Studio
5 years ago
Esun Kim
2825f867bb
Remove conversion warning
5 years ago
Nicolas "Pixel" Noble
4d8af5e4b9
Adding (v)snprintf and va_copy for Windows.
5 years ago
Bo Yang
a6347ec35e
Change methods name to specify as number/string
6 years ago
Bo Yang
8e5f03f719
Fix integer types
6 years ago
Bo Yang
c50e849ac2
Change int64 json encoding to be string
6 years ago
Joshua Haberman
283857f308
WIP.
6 years ago
Joshua Haberman
9960d7c772
Renamed end_group field number and updated documentation.
6 years ago
Joshua Haberman
da4e616860
Removed type from upb_array also.
6 years ago
Joshua Haberman
56779f09eb
All tests pass again.
6 years ago
Joshua Haberman
ba0a2fb955
Compiles, doesn't work yet.
6 years ago
Joshua Haberman
7485261370
WIP.
6 years ago
Joshua Haberman
811ee4f442
Use a custom mktime() function to avoid platform dependencies.
6 years ago
Joshua Haberman
a8f719c98d
Added checks for OOM conditions.
6 years ago
Joshua Haberman
4451b790bd
More Blaze fixes.
6 years ago
Joshua Haberman
985145ca16
Fixed amalgamation and CMake build.
6 years ago
Josh Haberman
cd9e1e6817
upb_proto_library() aspect is working, even for external repos.
6 years ago
Josh Haberman
932753d91e
WIP.
6 years ago
Josh Haberman
0c64c4b594
WIP.
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
Joshua Haberman
928ef7f2c0
Removed reflection and other extraneous things from the core library. ( #158 )
...
* Removed reflection and other extraneous things from the core library.
* Added missing files and ran buildifier.
* New CMakeLists.txt.
* Made table its own cc_library() for internal usage.
6 years ago
Paul Yang
a8a0bc73b9
Allow bytes field to be longer than 16000 bytes ( #157 )
6 years ago
Bo Yang
3c4f0347f9
Replace strptime with custom implementation
6 years ago
Paul Yang
56fefe2a50
Fix parsing repeated well known type value ( #153 )
...
* Fix parsing repeated well known type value
* Fix generated file
* Fix comment
6 years ago
Josh Haberman
71ec01e34b
Fix for Windows.
6 years ago
Bo Yang
da8d1392c1
Fix the issue for strptime
...
* Define _XOPEN_SOURCE
* Exclude usage on windows
6 years ago