Josh Haberman
c0a50de923
Removed a bunch of obsolete code.
...
A lot of this code was experimental or temporarily
useful, but is no longer needed.
6 years ago
Joshua Haberman
e3eae33fb5
Merge pull request #114 from haberman/arenaonly
...
Enforced that upb_msg lives in an Arena only, and other simplifying.
6 years ago
Joshua Haberman
636b25be8d
Re-add msg handlers to the .c file also.
6 years ago
Joshua Haberman
7059be68ae
Re-add message handlers to upb/handlers.*.
...
These are still being used by the proto2 bindings.
6 years ago
Joshua Haberman
c8f6a27e6b
Enforced that upb_msg lives in an Arena only, and other simplifying.
...
upb_msg was trying to be general enough that it could either live in
an arena or be allocated with malloc()/free(). This was too much
complexity for too little benefit. We should commit to just saying
that upb_msg is arena-only.
I also ripped out the code to glue upb_msg to the existing
handlers-based encoder/decoder. upb_msg has its own, small, simple
encoder/decoder. I'm trying to whittle down upb_msg to a small
and simple core.
I updated the Lua extension for these changes. Lua needs some more
work to properly create arenas per message. For now I just created
a single global arena.
6 years ago
Joshua Haberman
b0a6602fc8
Merge pull request #113 from TeBoring/json-wrapper
...
Support json parsing for wrapper values
6 years ago
Bo Yang
a8d1a5933d
Use special eof char to mark end of parsing
6 years ago
Bo Yang
d4caefaade
Move logic away from ragel machine
6 years ago
Bo Yang
f1d7570f30
Remove unused code
6 years ago
Bo Yang
ac9d4468f5
Make value top level
6 years ago
Bo Yang
ae2f1cdb17
Mark unused variable
6 years ago
Bo Yang
cc27a5b576
Update ragel generated file
6 years ago
Bo Yang
9449cf68cc
Make top level wrapper value parsing work
6 years ago
Bo Yang
20f1b6df41
Fix json decoding for wrapper messages
6 years ago
Joshua Haberman
1db11440bd
Merge pull request #112 from TeBoring/json-unknown
...
Enable ignore unknown field in json parsing
7 years ago
Bo Yang
72e66e2b55
Enable ignore unknown field in json parsing
7 years ago
Joshua Haberman
fa99d854f6
Merge pull request #110 from TeBoring/upb-revert
...
Revert "Prepare upb_value for encoding/decoding map."
7 years ago
Bo Yang
1080117f2b
Revert "Prepare upb_value for encoding/decoding map."
...
This reverts commit f30dd0ff0c
.
7 years ago
Joshua Haberman
d73b12ed3c
Merge pull request #107 from lauraguevara97/patch-1
...
Update README.md
7 years ago
Laura
45a9dd20d8
Update README.md
...
fixed spelling mistake :)
7 years ago
Bo Yang
f30dd0ff0c
Prepare upb_value for encoding/decoding map.
7 years ago
Paul Yang
5029aa439c
Merge pull request #105 from TeBoring/php-change
...
Implement decoding repeated message field.
7 years ago
Bo Yang
86dec3021f
Implement decoding repeated message field.
7 years ago
Paul Yang
13f200bd77
Merge pull request #104 from TeBoring/php-change
...
Bytes type should return size of stringview
7 years ago
Bo Yang
0833cf29b3
Bytes type should return size of stringview
7 years ago
Paul Yang
298c252695
Merge pull request #103 from TeBoring/php-change
...
Fix problems of upb_encode_growbuffer
7 years ago
Bo Yang
e06cc3d7cc
e->limit is invalidated after growing.
7 years ago
Paul Yang
0693640da8
Merge pull request #101 from TeBoring/php-change
...
Fix parsing sub-message field.
7 years ago
Joshua Haberman
9dbe75a403
Merge pull request #102 from haberman/descriptor-in-core
...
Added google/protobuf/descriptor.upb.* to core.
7 years ago
Josh Haberman
cea737028f
Added google/protobuf/descriptor.upb.* to core.
...
This is in preparation for making upb_def capable
of parsing binary descriptors directly.
We leave upb/descriptor/descriptor.upbdefs.* in
place for now, because upb/descriptor/reader.*
still depends on it.
Also removed a bit of cruft from the codegen.
7 years ago
Bo Yang
93aaf99347
Fix parsing sub-message field.
...
Buffer start place needs to be adjusted before parsing sub-message.
7 years ago
Paul Yang
681cf4279c
Merge pull request #100 from TeBoring/php-change
...
Fix oneof encoding/decoding
7 years ago
Bo Yang
dfe7d3a374
swap condition branches to remove negation
7 years ago
Bo Yang
ba93474aa2
Fix oneof encoding/decoding
7 years ago
Paul Yang
6edcf6a82a
Merge pull request #99 from TeBoring/php-change
...
In case of circular dependency, layout has to be inserted first.
7 years ago
Bo Yang
bc7f1eaca0
In case of circular dependency, layout has to be inserted first.
7 years ago
Paul Yang
69719e0a06
Merge pull request #98 from TeBoring/php-change
...
Field missing submsg, hasbit and default value information.
7 years ago
Bo Yang
719f644232
Field missing submsg and hasbit information.
7 years ago
Paul Yang
10ae4951fb
Merge pull request #97 from TeBoring/php-change
...
Conversion from uint64 to uint32 didn't consider sign bit.
7 years ago
Bo Yang
8c6d0e5545
Conversion from uint64 to uint32 didn't consider sign bit.
7 years ago
Joshua Haberman
a66159a384
Merge pull request #96 from TeBoring/php-change
...
For encoding upb needs descriptor type instead of type.
7 years ago
Bo Yang
cafebf6bee
For encoding upb needs descriptor type instead of type.
7 years ago
Joshua Haberman
bcb62b7fbf
Merge pull request #92 from TeBoring/unknown
...
Add new "unknown field" handler.
7 years ago
Bo Yang
0a9681874e
Modify TODO
7 years ago
Bo Yang
10c6f18d11
Turn off warining on undef private/protected
7 years ago
Bo Yang
1e1c54f772
Change parameter type from enum opcode to int.
...
If the compiler elects to represent enum E as a char rather than an int
(per 6.7.2.2p4), the call to va_start() will have undefined behavior.
7 years ago
Bo Yang
ee7b049d19
Initialize tag to make compiler happy.
7 years ago
Joshua Haberman
0776f64830
Fixed JIT for unknown fields. ( #1 )
7 years ago
Bo Yang
d9eca86091
Modify selector base in tests/json/test.upbdefs.cc
7 years ago
Bo Yang
dd77460c65
Do not expose encode_unknown
7 years ago