Joshua Haberman
8f2aeb8084
Modified descriptor files.
15 years ago
Joshua Haberman
15604083c7
Move string representations back upb.h -> upb_data.h.
15 years ago
Joshua Haberman
fa5710f1ca
upb_string* -> upb_strptr, to follow aliasing rules.
15 years ago
Joshua Haberman
0e5b8e56b8
Correct descriptor: initialize base.
15 years ago
Joshua Haberman
cb5befb343
Correct descriptor.h: for now messages always have a upb_data.
15 years ago
Joshua Haberman
8978661a76
upbc compiles, but doesn't link due to unimplemented stuff in upb_data.
15 years ago
Joshua Haberman
602e093504
Core compiles, though with warnings, and is still incomplete.
15 years ago
Joshua Haberman
f49f7f94c1
More progress, upb_data and upb_def compile (but are incomplete).
15 years ago
Joshua Haberman
c241976485
In the midst of a major refactoring.
15 years ago
Joshua Haberman
18291eedc3
Make defs refcounted, rename upb_context->upbsymtab.
...
There is currently a memory leak when type definitions
form cycles. This will need to be dealt with.
15 years ago
Joshua Haberman
a95ab58e79
Overhaul defs to derive from a common base.
15 years ago
Joshua Haberman
9e3f5e343b
Make upb_msgdef own all its data.
...
This is in anticipation of making upb_msgdef's easy
to dup. This involved removing all traces of any
descriptors from the defs.
15 years ago
Joshua Haberman
527a544b04
Small bugfix: enums are int32, not uint32.
15 years ago
Joshua Haberman
040f7e6ba2
Significant memory-management refactoring any Python extension.
15 years ago
Joshua Haberman
2282d2489b
Refactoring: unify upb_msg.
...
The cost is that a upb_msg will now always have an overhead
of 2*sizeof(void*). This is comparable to proto2 overhead.
The benefit is that upb_msg is now self-describing, and
read-only algorithms can now operate on a upb_msg regardless
of the memory-management scheme.
Also, upb_array and upb_string now know inherently if they
own their associated memory, and upb_array has a generic
pointer for memory management purposes like upb_msg does.
16 years ago
Joshua Haberman
10cdab28e9
Add a friendly comment at the top of auto-generated C files.
16 years ago
Joshua Haberman
a952e42e99
Fixed a bug in set_flags order in the compiler.
16 years ago
Joshua Haberman
c7154e0fb4
New descriptor.c and descriptor.h (generated by upbc!)
16 years ago
Joshua Haberman
6fe8601713
Move upb_array into its own header, upb_context parses fds instead of fd.
16 years ago
Joshua Haberman
f8e55823e0
Add text version of descriptor.proto.
16 years ago
Joshua Haberman
462b26c1cc
Directory restructuring.
16 years ago