Joshua Haberman
806ffc1d20
Responded to PR comments.
7 years ago
Joshua Haberman
15308afff2
Fixes for oneof conformance tests.
7 years ago
Joshua Haberman
b697882fb2
Fixed varint length when buffer is reallocated.
7 years ago
Joshua Haberman
be9094d91a
New encode/decode: most (171 / 192) conformance tests pass.
7 years ago
Joshua Haberman
4da95f6213
Merge branch 'gencode2' into gencode3
7 years ago
Joshua Haberman
6eb489a30a
Merge branch 'master' into gencode2
7 years ago
Joshua Haberman
edad06a9fa
WIP.
7 years ago
Joshua Haberman
0af928564e
Merge pull request #89 from google/stringview
...
Added upb_stringview, the string representation for upb_msg.
7 years ago
Joshua Haberman
277c4d584f
Merge branch 'gencode2' into gencode3
7 years ago
Joshua Haberman
1278ff8994
Responded to PR comments.
7 years ago
Joshua Haberman
2e01793ded
Merge branch 'stringview' into gencode3
7 years ago
Joshua Haberman
c0a660f474
Added upb_stringview, the string representation for upb_msg.
7 years ago
Joshua Haberman
f38e4c7cf4
Merge pull request #87 from google/gencode
...
Start migrating upb_msglayout to be suitable for generated code.
7 years ago
Joshua Haberman
051df05fb2
Merge branch 'gencode2' into gencode3
7 years ago
Joshua Haberman
717a030083
Merge branch 'gencode' into gencode2
7 years ago
Joshua Haberman
3e8acc3f4e
Removed incorrect assert and added comments.
7 years ago
Joshua Haberman
af43ea72b5
Removed incorrect assertion.
...
Internal members aren't initialized by default_msg.
7 years ago
Joshua Haberman
428deb3a53
Merge branch 'gencode' into gencode2
7 years ago
Joshua Haberman
2826811367
Responded to PR comments.
7 years ago
Joshua Haberman
699b51b441
Lots of encoder/decoder work (backwards encoder).
7 years ago
Josh Haberman
1aafd4111b
A good start on upb_encode and upb_decode.
8 years ago
Josh Haberman
dd536fd567
Be more picky about command-line args in upbc.
8 years ago
Joshua Haberman
9cb10577fc
First version of a real C codegen for upb.
...
Also includes an implementation of the conformance tests
to display what the API usage will be like.
There is still a lot to do, and things that are broken (oneofs,
repeated fields, etc), but it's a good start.
8 years ago
Joshua Haberman
76fcdd2ee9
Removed all upb_msgdef/upb_fielddef from upb_msg.
8 years ago
Joshua Haberman
1b9d37a00e
Start migrating upb_msglayout to be suitable for generated code.
...
This involves:
- remove upb_msglayout -> upb_msgfactory dependency.
- remove upb_msglayout -> upb_msgdef dependency (in progress).
- make upb_msglayout use a representation that can be
statically initialized by generated code.
The goal here is that upb_msglayout becomes a kind of "descriptor
lite": it contains enough data to parser and serialize protobufs
and manipulate a upb_msg in memory, while being far smaller and
simpler than a full descriptor. It also does not include field
names, which can be a benefit for applications that do not want
to leak field names.
Generated code can then create a upb_msglayout, and do most things
without ever needing to construct full descriptors/defs if they
don't want to.
8 years ago
Joshua Haberman
e38098cbfc
Merge pull request #86 from haberman/json-numbers
...
Some fixes to make JSON properly recognize numbers in quotes.
8 years ago
Josh Haberman
cbc2d7af56
Responded to PR comments. This also fixed a few more conformance tests.
8 years ago
Joshua Haberman
8389aa2977
Merge pull request #84 from TeBoring/master
...
Fix upb load descriptor when no messages defined in prorto.
8 years ago
Josh Haberman
d04af15acb
Some fixes to make JSON properly recognize numbers in quotes.
8 years ago
Joshua Haberman
82cbdc86ac
Merge pull request #85 from TeBoring/pull2
...
php_namespace should be explicitly set even if it's empty.
8 years ago
Bo Yang
35f838e82d
php_namespace should be explicitly set even if it's empty.
8 years ago
Bo Yang
0a9b07ba86
Fix upb load descriptor when no messages defined in prorto.
8 years ago
Joshua Haberman
04fcf0b112
Merge pull request #83 from TeBoring/master
...
Add new file option php_namespace.
8 years ago
Bo Yang
f15e6764bd
Add new file option php_namespace.
...
Use this option to change the namespace of php generated classes.
Default is empty. When this option is empty, the package name will be
used for determining the namespace.
8 years ago
Joshua Haberman
3f3ee548f1
Merge pull request #82 from haberman/rmvarint
...
Deleted some dead code related to varint decoding.
8 years ago
Josh Haberman
c909a7aa6e
Deleted some dead code related to varint decoding.
8 years ago
Joshua Haberman
6507e1fee3
Merge pull request #81 from TeBoring/master
...
Fix bugs in file_onphpprefix
8 years ago
Bo Yang
4169481438
Fix bugs in file_onphpprefix
...
1. It should call file_setphpprefix instead.
2. Collect prefix.
3. Return size of string.
8 years ago
Joshua Haberman
e35c38fc65
Merge pull request #80 from TeBoring/master
...
Add new file option php_class_prefix.
8 years ago
Bo Yang
969ba5ef86
Add new file option php_class_prefix.
...
This option will be prepended to all php generated classes. The PHP
runtime needs to know this option to figure out the class name for
specific message.
8 years ago
Joshua Haberman
5a8467842a
Merge pull request #79 from TeBoring/master
...
Bug fix: When encoding, negative int32 values should be padded to int…
8 years ago
Bo Yang
0168f28daf
Bug fix: When encoding, negative int32 values should be padded to int64 in order to be wire compatible
8 years ago
Joshua Haberman
73a48a46f8
Merge pull request #78 from haberman/axerefcount
...
Fixed amalgamated build and added test.
8 years ago
Josh Haberman
3b7dc27fb5
Fixed amalgamated build and added test.
8 years ago
Joshua Haberman
72ae34c28f
Merge pull request #77 from haberman/axerefcount
...
Simplify and remove some code from upb::SymbolTable
8 years ago
Josh Haberman
5aa01b46e4
A couple more fixes.
8 years ago
Josh Haberman
512130adf1
Remove another bit of obsolete code.
8 years ago
Josh Haberman
693b841ec6
Removed all code for adding extensions to upb_symtab.
...
This means extensions can't be used until we implement
the replacement APIs for accessing extensions from a
symtab.
8 years ago
Joshua Haberman
9a9a1097a7
Merge pull request #76 from haberman/movesymtab
...
Moved upb_symtab to def.h/def.c.
8 years ago
Josh Haberman
629b4ce621
Ripped out complicated and unused code for replacing defs in a symtab.
...
Also hid the dup() functions. We can't quite delete them yet
because our current approach for extensions depends on duplicating
defs.
8 years ago