Age | Commit message (Collapse) | Author |
|
Fix upb load descriptor when no messages defined in prorto.
|
|
|
|
|
|
|
|
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.
|
|
Deleted some dead code related to varint decoding.
|
|
|
|
1. It should call file_setphpprefix instead.
2. Collect prefix.
3. Return size of string.
|
|
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.
|
|
order to be wire compatible
|
|
|
|
|
|
|
|
This means extensions can't be used until we implement
the replacement APIs for accessing extensions from a
symtab.
|
|
Also hid the dup() functions. We can't quite delete them yet
because our current approach for extensions depends on duplicating
defs.
|
|
This transitions it from shared ownership to unique
ownership.
|
|
This is in anticipation of removing refcounting and
making upb_symtab (soon to be upb_defpool) the unique
owner of all defs inside.
|
|
|
|
|
|
Doesn't yet include strings, submessages, maps,
or repeated fields.
|
|
Added upb_msg and Lua bindings for using it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There are still some things that are unfinished,
but we are at parity with what Lua had before.
|
|
|
|
|
|
|
|
Clearly this stuff is too complex overall.
The plan is to move away from this and more towards
pools, like proto2 uses.
|
|
Added support for loading oneofs from descriptors.
|
|
|
|
|
|
|
|
A small bugfix to upb_table and simplified some code.
|
|
|
|
|
|
|
|
* Added UPB_ASSERT() that helps avoid unused var warnings.
* Addressed PR comments.
* Fixed assert in the JIT.
|
|
|
|
|
|
* Put oneofs in the same table as fields.
Oneofs and fields are not allowed to have names that conflict,
so we might as well put them all in the same table. This also
allows an efficient operation that looks for both fields and
oneofs in a single lookup.
Added support for OneofDef to Lua to allow testing of this.
* Addressed PR comments.
|
|
* Changed schema for JSON test to be defined in a .proto file.
Before we had lots of code to build these schemas manually,
but this was verbose and made it difficult to add to the
schema easily. Now we can just write a .proto file and
adding fields is easy.
To avoid making the tests depend on upbc (and thus Lua)
we check in the generated schema.
* Made protobuf-compiler a dependency of "make genfiles."
* For genfiles download recent protoc that can handle proto3.
* Only use new protoc for genfiles.
|
|
* Split upb::Arena/upb::Allocator from upb::Environment.
This will allow arenas and allocators to be used
independently of environments, which will be important
for an upcoming change (a message representation).
Overall this design feels cleaner that the previous
Environment/SeededAllocator design.
As part of this change, moved all allocations in upb
to use a global allocator instead of hard-coding
malloc/free. This will allow injecting OOM faults
for more robust testing.
One place that doesn't use the global allocator is
the tracked ref code. Instead of its previous approach
of CHECK_OOM() after every malloc() or table insert, it
simply uses an allocator that does this automatically.
I moved Allocator/Arena/Environment into upb.h.
This seems principled since these are the only types
in upb whose size is directly exposed to users, since
they form the basis of memory allocation strategy.
* Cleaned up some header includes and fixed more malloc -> upb_gmalloc().
* Changes from PR review.
* Don't use UINTPTR_MAX or UINT64_MAX.
* Punt on adding line/file for now.
* We actually can't store (uint64_t)-1, update comment and test.
|
|
|