summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-02-17Addressed code review comments.Josh Haberman
2016-02-17Changed JSON parser/printer to correctly camelCase names.Josh Haberman
2016-01-26Merge pull request #47 from haberman/compactJoshua Haberman
Optimized upb_inttable_compact(): it shrinks inttables more now.
2016-01-26Added small explanatory comment.Josh Haberman
2016-01-19Optimized upb_inttable_compact(): it shrinks inttables more now.Josh Haberman
2016-01-06Merge pull request #45 from mbarbon/fix-status-initJoshua Haberman
Make sure upb_pbdecoder.status is initialized
2016-01-05Merge pull request #44 from mbarbon/masterJoshua Haberman
Add missing upb_fielddef_fullname implementation
2015-12-30Make sure upb_pbdecoder.status is initializedMattia Barbon
Otherwhise the end message callback is passed a garbage value.
2015-12-30Add missing upb_fielddef_fullname implementationMattia Barbon
2015-10-21Merge pull request #43 from haberman/presenceflagJoshua Haberman
Add flag to MessageDef for whether fields have presence.
2015-10-21Addressed PR comments.Josh Haberman
2015-10-15Properly populate field presence flag on messages according to syntax flag.Josh Haberman
2015-10-14Add flag to MessageDef for whether fields have presence.Josh Haberman
2015-08-19Merge pull request #38 from haberman/decoderfix2Joshua Haberman
Added lots of decoder tests and fixed lots of bugs.
2015-08-19Refer to a shared definition for max buffered bytes.Josh Haberman
2015-08-14Added lots of decoder tests and fixed lots of bugs.Josh Haberman
2015-08-13Merge pull request #37 from haberman/google-internalJoshua Haberman
Fix from google3: memory leak caught by heapcheck.
2015-08-13Fix from google3: memory leak caught by heapcheck.Josh Haberman
2015-08-12Merge pull request #36 from haberman/decoderfixJoshua Haberman
Decoder fix: skipped data at end of submessage.
2015-08-11More decoder fixes, and slightly changed parse call semantics.Josh Haberman
Prior to this change, if an error was returned, it would be guaranteed to always return a short byte count. Now the two concepts are a bit more orthogonal. There are cases where the entire input is consumed even though an error was encountered.
2015-07-31Decoder fix: skipped data at end of submessage.Josh Haberman
2015-07-31Merge pull request #34 from haberman/parserskipJoshua Haberman
Changed parser semantics around skipping.
2015-07-30Fixed PR for JIT-enabled builds.Josh Haberman
2015-07-30Changed parser semantics around skipping.Josh Haberman
Prior to this change: parse(buf, len) -> len + N ...would indicate that the next N bytes of the input are not needed, *and* would advance the decoding position by this much. After this change: parse(buf, len) -> len + N parse(NULL, N) -> N ...can be used to achieve the same thing. But skipping the N bytes is not explicitly performed by the user. A user that doesn't want/need to skip can just say: parsed = parse(buf, len); if (parsed < len) { // Handle suspend, advance stream by "parsed". } else { // Stream was advanced by "len" (even if parsed > len). } Updated unit tests to test this new behavior, and refactored test utility code a bit to support it.
2015-07-15Merge pull request #33 from haberman/jsonerrJoshua Haberman
Fixed JSON parser error reporting.
2015-07-15Clear JSON parser status in reset.Josh Haberman
2015-07-15Updated JSON parser size.Josh Haberman
2015-07-15Fixed JSON parser error reporting.Josh Haberman
This was previously broken -- it would try to set the status object on the parser, but the pointer was never initialized. Also it didn't report errors properly to the environment object.
2015-07-07Also remove license headers from Lua.Josh Haberman
2015-07-07Updated license headers for Ragel source also.Josh Haberman
2015-07-07Brought into compliance with Google open-source policies.Josh Haberman
- removed myself from Author headers in source files. - removed copyright notices from source file headers. - added CONTRIBUTING.md
2015-07-07Merge pull request #32 from haberman/third_partyJoshua Haberman
Moved lunit to third_party for Google compliance.
2015-07-07Moved lunit to third_party for Google compliance.Josh Haberman
2015-07-07Merge pull request #31 from haberman/third_partyJoshua Haberman
Moved DynASM to third_party to comply with Google policy.
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.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback