summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-07-07Moved lunit to third_party for Google compliance.Josh Haberman
2015-07-07Moved DynASM to third_party to comply with Google policy.Josh Haberman
2015-06-22Merge pull request #30 from haberman/encoderfixJoshua Haberman
Fixed some bad bugs in upb_env.
2015-06-22Fixed some bad bugs in upb_env.Josh Haberman
Also added a unit test for upb_encoder that demonstrates the bugs and the fix.
2015-06-15Merge pull request #29 from haberman/symtabfixJoshua Haberman
Fix for stack overflow for cyclic defs.
2015-06-15Addressed code review comment and clarified comments.Josh Haberman
2015-06-12Fix for stack overflow for cyclic defs.Josh Haberman
Fixes this bug that came up in the Ruby extension: https://github.com/google/protobuf/issues/425
2015-06-12Fix amalgamation by changing include style for structdef.int.h.Josh Haberman
2015-06-06Parameterize AR properly in the Makefile.Josh Haberman
2015-06-06Fix for va_copy.Josh Haberman
2015-06-04Fixes from Google-internal.Josh Haberman
2015-06-03Merge branch 'master' into google-internalJosh Haberman
2015-06-03Sync from Google-internal development.Josh Haberman
2015-06-03Merge pull request #27 from haberman/c89Joshua Haberman
Ported upb to C89, for greater portability.
2015-06-02Ported upb to C89, for greater portability.Josh Haberman
A large part of this change contains surface-level porting, like moving variable declarations to the top of the block. However there are a few more substantial things too: - moved internal-only struct definitions to a separate file (structdefs.int.h), for greater encapsulation and ABI compatibility. - removed the UPB_UPCAST macro, since it requires access to the internal-only struct definitions. Replaced uses with calls to inline, type-safe casting functions. - removed the UPB_DEFINE_CLASS/UPB_DEFINE_STRUCT macros. Class and struct definitions are now more explicit -- you get to see the actual class/struct keywords in the source. The casting convenience functions have been moved into UPB_DECLARE_DERIVED_TYPE() and UPB_DECLARE_DERIVED_TYPE2(). - the new way that we duplicate base methods in derived types is also more convenient and requires less duplication. It is also less greppable, but hopefully that is not too big a problem. Compiler flags (-std=c89 -pedantic) should help to rigorously enforce that the code is free of C99-isms. A few functions are not available in C89 (strtoll). There are temporary, hacky solutions in place.
2015-05-28Update Travis and Coveralls URLs for repo switch.Josh Haberman
2015-05-28Merge pull request #21 from google/tablestringsJoshua Haberman
Restructure tables for C89 port and smaller size.
2015-05-19Merge pull request #22 from martinmaly/upbcJoshua Haberman
Generating enums and intentries only if the tables are non-empty.
2015-05-18Generating enums and intentries only if the tables are non-empty.Martin Maly
2015-05-18Updates from code review comments.Josh Haberman
2015-05-17Restructure tables for C89 port and smaller size.Josh Haberman
Changes the data layout of tables slightly so that string keys are prefixed with their size, rather than the size being inline in the table itself. This has a few benefits: 1. inttables shrink a bit, because there is no longer a wasted and unused size field sitting in them. 2. This avoids the need to have a union in the table. This is important for an impending C89 port of upb, since C89 has literally no way of statically initializing a non-first union member.
2015-05-16JIT bugfix: align stack properly on getbytes_slow.Josh Haberman
2015-05-16Upload failing artifacts to S3 for debugging purposes.Josh Haberman
2015-05-16Enabled asserts() and verbosity for most Travis builds.Josh Haberman
Also added a separate ndebug build for testing that -DNDEBUG builds still work. Also disabled reference debugging by default, since it requires either a global lock or -DUPB_THREAD_UNSAFE.
2015-05-15Merge pull request #19 from cfallin/upb-seededalloc-fixJoshua Haberman
Bugfix: seeded_alloc() should not realloc() user-provided memory.
2015-05-15Bugfix: seeded_alloc() should not realloc() user-provided memory.Chris Fallin
2015-05-15Decoder bugfix.Josh Haberman
Don't back up decoder after skipunknown() unless we actually successfully consumed input data.
2015-05-13Enable Travis for Clang, and enable -Werror for all Travis builds.Josh Haberman
Also added an extra Clang-only warning flag.
2015-05-13Changes to Lua module loading, and file generation.Josh Haberman
This change has several parts: 1. Resurrected tools/upbc. The code was all there but the build was broken for open-source. Now you can type "make tools/upbc" and it will build all necessary Lua modules and create a robust shell script for running upbc. 2. Changed Lua module loading to no longer rely on OS-level .so dependencies. The net effect of this is that you now only need to set LUA_PATH and LUA_CPATH; setting LD_LIBRARY_PATH or rpaths is no longer required. Downside: this drops compatibility with Lua 5.1, since it depends on a feature that only exists in Lua >=5.2 (and LuaJIT). 3. Since upbc works again, I fixed the re-generation of the descriptor files (descriptor.upb.h, descriptor.upb.c). "make genfiles" will re-generate these as well as the JIT code generator. 4. Added a Travis test target that ensures that the checked-in generated files are not out of date. I would do this for the Ragel generated file also, but we can't count on all versions of Ragel to necessarily generate identical output. 5. Changed Makefile to no longer automatically run Ragel to regenerate the JSON parser. This is unfortuante, because it's convenient when you're developing the JSON parser. However, "git clone" sometimes skews the timestamps a little bit so that "make" thinks it needs to regenerate these files for a fresh "git clone." This would normally be harmless, but if the user doesn't have Ragel installed, it makes the build fail completely. So now you have to explicitly regenerate the Ragel output. If you want to you can uncomment the auto-generation during development.
2015-05-11Remove test code written by contributor without a CLA.Josh Haberman
2015-05-08Merge pull request #17 from martinmaly/linksJoshua Haberman
Updating Readme links
2015-05-08Merge pull request #18 from haberman/google-internalJoshua Haberman
Sync from Google-internal development.
2015-05-08Fixes for the open-source build.Josh Haberman
2015-05-08Merge from open-source development.Josh Haberman
2015-05-08Google-internal development.Josh Haberman
2015-05-08Updating Readme linksMartin Maly
2015-05-06Merge pull request #16 from martinmaly/warningsJoshua Haberman
Resolve compilation errors if compiled with strict warnings.
2015-05-06Resolve compilation errors if compiled with more stringent semantic checks.Martin Maly
Adding Travis test to build with strict warnings. Fixing a warning in a test which used signed/unsigned integer comparison.
2015-02-02Merge pull request #13 from cfallin/json-mapsJoshua Haberman
Fixed JSON parser issue: missing NUL byte in parse_number() in some code paths.
2015-02-02Fixed JSON parser issue: missing NUL byte in parse_number() in some codeChris Fallin
paths. Also, fix unused-function warnings.
2015-02-02Merge pull request #12 from cfallin/json-mapsJoshua Haberman
Support maps in JSON parsing and serialization.
2015-02-02Support maps in JSON parsing and serialization.Chris Fallin
This is a sync of our internal developing of JSON parsing and serialization. It implements native understanding of MapEntry submessages, so that map fields with (key, value) pairs are serialized as JSON maps (objects) natively rather than as arrays of objects with 'key' and 'value' fields. The parser also now understands how to emit handler calls corresponding to MapEntry objects when processing a map field. This sync also picks up a bugfix in `table.c` to handle an alloc-failed case.
2015-01-15Add -O0 for coverage run to hopefully get better data.Josh Haberman
2015-01-14Merge pull request #11 from cfallin/oneofsJoshua Haberman
Support oneof defs in upb.
2015-01-14Support oneof defs in upb.Chris Fallin
This change adds support for a OneofDef (upb_oneofdef), which represents a 'oneof' as introduced by Protocol Buffers. This is semantically a union type that contains fields and in turn may be added to a MessageDef. This change does not alter parsing or the handler abstraction in any way, because a oneof has impact only at a higher semantic level (i.e., any sort of storage of the fields in a message object), which is user-specific with respect to upb.
2015-01-09Coverage support for coveralls.io.Josh Haberman
2015-01-08Fix for JSON parser: don't overrun buffer parsing ints.Josh Haberman
2015-01-07Changes from Google-internal development.Josh Haberman
* JSON parser expanded to handle split buffers. * bugfix to the protobuf decoder.
2014-12-19Merge pull request #10 from cfallin/masterJoshua Haberman
Modified strtable to support length-delimited string keys.
2014-12-18Modified strtable to support length-delimited string keys. Allows forChris Fallin
arbitrary binary data, e.g., to support strings from other languages as key values.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback