Joshua Haberman
fe3df2c9bc
Python: basic SymbolTable support and empty accessors.
13 years ago
Joshua Haberman
2cf930ef51
Python: fixed object cache and fleshed out MessageDef a bit.
13 years ago
Joshua Haberman
be74572455
Fixed off-by-one stack allocation error.
13 years ago
Joshua Haberman
fc9c49860b
Python: Implemented weak-ref'd object cache.
...
Also some preliminary work on upb.MessageDef.
13 years ago
Joshua Haberman
ce425df78c
More Python upb.FieldDef functionality and tests.
14 years ago
Joshua Haberman
487bfdfc06
Begin port of Python extension to new APIs.
14 years ago
Joshua Haberman
6981e468a3
More work on Lua extension, and consequent core refactoring.
14 years ago
Joshua Haberman
c2c853fa21
More work on Lua extension.
14 years ago
Joshua Haberman
56984e8db8
Significant work on Lua extension.
...
Also changes in core library to accommodate.
14 years ago
Joshua Haberman
b6ca2718c8
Make Lua extension build again.
14 years ago
Joshua Haberman
2ccebb74c3
Add proof-of-concept C++ wrapper header.
14 years ago
Joshua Haberman
c110061a73
Small change to make Lua extension compile again.
14 years ago
Josh Haberman
b796c1b317
Update copyright to be Google Inc.
...
This doesn't reflect any material change in
how I will be working on upb, and I have no
problem making this change. It's still open
source under the BSD license, and I'll still
be working on it well beyond the hours that
constitute a normal job.
14 years ago
Joshua Haberman
65b57a2813
Added escaping for text output.
14 years ago
Joshua Haberman
a75a305c77
Implemented upb_stringsink, upb_msgtotext, and exposed the latter to Lua.
14 years ago
Joshua Haberman
3a758132b4
Added proper support for enum default values.
14 years ago
Joshua Haberman
6b574175dd
Prevent the default message from getting mutated.
...
If a Lua program references the default message, it will
be copied into a mutable object.
14 years ago
Joshua Haberman
fd184f0df2
Major work on Lua extension and default values.
...
Default values are now supported, and the Lua extension
can now create and modify individual protobuf objects.
14 years ago
Joshua Haberman
1e972d40f1
Bring lua extension up to date with new symtab APIs.
14 years ago
Joshua Haberman
7af638ff2d
Revive Lua extension.
...
It builds and you can inspect a symtab.
Still need to expose streaming and message
based interfaces.
14 years ago
Joshua Haberman
672f4617e2
Lua support for fielddefs and getting their properties.
15 years ago
Joshua Haberman
d3d939ab7f
Fix the case where no def is found for lookup.
15 years ago
Joshua Haberman
21ee24a730
Updated Lua extension to handle fielddefs.
15 years ago
Joshua Haberman
71ac83fe7a
Make object cache weak.
15 years ago
Joshua Haberman
4a38d38f96
Use a weak table to cache objects.
...
This simplifies things considerably, and is more
in line with common practice.
15 years ago
Joshua Haberman
904a79cec3
Fix bugs in lookup and getdefs.
15 years ago
Joshua Haberman
5871ed0d02
First go at Lua bindings.
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
7cde43ea0a
Renamed upb_msg_fielddef -> upb_fielddef, upb_enum -> upb_enumdef.
15 years ago
Joshua Haberman
33a68acb14
Use a status object for errors so a message can be returned.
...
Also delay deletion of subfields until the entire message is
deleted.
15 years ago
Joshua Haberman
4b47002198
Update Python C extension for new upb_array API.
15 years ago
Joshua Haberman
b276aa78b6
Updated/corrected comments in pb.c.
15 years ago
Joshua Haberman
bf2082acaa
Add .py files for Python extension (they are just shells).
15 years ago
Joshua Haberman
040f7e6ba2
Significant memory-management refactoring any Python extension.
15 years ago
Joshua Haberman
a223f9af30
More work on Python extension, build libupb PIC.
16 years ago
Joshua Haberman
f00091f340
Beginnings of a Python extension.
16 years ago