Joshua Haberman
d4e78f9fdf
Merge pull request #132 from haberman/bazel
...
Added Bazel build, and auto-generate CMake build from it.
6 years ago
Josh Haberman
23fa64f10c
Added script to generate CMake build. Bazel tests it.
6 years ago
Josh Haberman
966d9d89e6
Added Kokoro config files.
6 years ago
Josh Haberman
9abff2b95f
Added missing files from Bazel build.
6 years ago
Josh Haberman
a7ebe54eb1
Conformance tests work under Bazel.
6 years ago
Josh Haberman
2655ed9cf5
Bazel builds everything except conformance_upb.
6 years ago
Josh Haberman
01ed4ce3d4
WIP.
6 years ago
Josh Haberman
9bb0814c48
Added missing "upbc" file.
6 years ago
Josh Haberman
2d44ad4bad
Some fixes to the CMake build.
6 years ago
Josh Haberman
e77ab811ba
Merge branch 'master' into defcleanup
6 years ago
Paul Yang
3c742bfdc8
Fix json ignore unknown ( #128 )
...
* Fix json ignore unknown
Previously, there were several problems with ignoring unknown in json.
1) After finding a field is unknown, the parser's state is not changed. Thus, there is no way to distinguish whether the parser is dealing with an unknown field or it's just a top level message.
2) Several method didn't respect unknown field, e.g., start_object, end_bool, start_array.
* Update json parser size
* Update json parser size
6 years ago
Paul Yang
b258ae3235
Fix mac use local timezone for strptime by default. ( #127 )
...
* Fix mac use local timezone for strptime by default.
* Fix comments
* Check len == UPB_TIMESTAMP_BASE_SIZE
* Fix comment
6 years ago
Paul Yang
706ffdbc65
Fix json encoding for wrappers, ListValue, Struct and Value. ( #126 )
...
* Fix json encoding for wrappers, ListValue, Struct and Value.
* Add well_known_type field in upb_msgdef to specify type of well known messages.
* Remove comma at end of enum definition.
* Group number wrappers
* Fix comments
* Refactoring to use is_wellknown_{msg/field}
6 years ago
Josh Haberman
b79fd65a83
WIP.
6 years ago
Joshua Haberman
4271689953
Merge pull request #125 from haberman/portdef
...
Fixed port_def/undef so that the amalgamation is self-contained.
6 years ago
Josh Haberman
ae4c03b93c
Fixed port_def/undef so that the amalgamation is self-contained.
6 years ago
Joshua Haberman
b2a388212a
Merge pull request #124 from haberman/unknown
...
Added support for unknown fields to upb_msg.
6 years ago
Josh Haberman
950d7a9530
Fixed warnings.
6 years ago
Josh Haberman
a105c015b1
Added support for unknown fields to upb_msg.
...
After this CL, upb passes all existing proto3 conformance tests.
However the conformance suite is missing a lot of cases and should
be fleshed out.
6 years ago
Joshua Haberman
ea19fa4ed6
Merge pull request #123 from haberman/rmdefault
...
Removed default instance and oneof array from tables.
6 years ago
Josh Haberman
b290a5dd65
Disabled another Lua test for the time being.
6 years ago
Josh Haberman
a4db175929
Removed unnecessary struct definition with "int a".
6 years ago
Josh Haberman
4a7bc85d72
Fixed some c89 errors.
6 years ago
Josh Haberman
340bd01338
Removed default instance and oneof array from tables.
6 years ago
Josh Haberman
3d511104ac
Updated protobuf submodule.
6 years ago
Joshua Haberman
ef1246d87c
Merge pull request #121 from haberman/minimize
...
Changed C API to only define structs, a table, and a few minimal inline function.
6 years ago
Joshua Haberman
bdbc9fbd6d
Merge pull request #122 from TeBoring/json-values
...
Fix json parsing for Struct, ListValue and Value.
6 years ago
Joshua Haberman
3a37b91532
Fixed amalgamation.
6 years ago
Joshua Haberman
ba03d65a8f
Removed unused variable.
6 years ago
Joshua Haberman
1d4957a9a6
Removed unused parameter.
6 years ago
Joshua Haberman
287ab94800
A few more compile fixes.
6 years ago
Joshua Haberman
33d1231ead
Added port_def.inc and port_undef.inc.
6 years ago
Joshua Haberman
f7713ebc39
Changed C API to use inline functions and computed offsets.
6 years ago
Bo Yang
81fbb4ffa7
Initialize value
6 years ago
Bo Yang
6c910330c4
Fix json parsing for Struct, ListValue and Value.
6 years ago
Joshua Haberman
694d51f4d6
Changed C API to only define structs, a table, and a few minimal inline functions.
6 years ago
Joshua Haberman
41379a7064
Merge pull request #120 from haberman/cmake
...
More work on CMake.
6 years ago
Joshua Haberman
b6a92a93c6
More work on CMake build, and updated conformance for proto3.
6 years ago
Paul Yang
6c4469e189
Fix json encoding/decoding for duration. ( #118 )
...
* Fix json encoding/decoding for duration.
* Use lld for int64_t
* Cast int64_t to long
6 years ago
Joshua Haberman
b7cad62b5f
Got CMake build working on macOS, and updated CMake build.
6 years ago
Joshua Haberman
62318cadce
Merge pull request #119 from rohitsakala/master
...
Bugfix for bigendian platforms by casting size_t to unint32_t
6 years ago
Sakala Venkata Krishna Rohit
4473585734
Merge branch 'master' of https://github.com/rohitsakala/upb
6 years ago
Sakala Venkata Krishna Rohit
898f640e65
Bugfix on bigendianess by casting size_t to unint32_t
...
The reason for typecasting size_t to unint32_t is that size_t is 8 bytes and uint32_t is only 4 bytes.
If not typecasted Memcpy fails to copy the *correct* four bytes in big endian platforms.
6 years ago
Sakala Venkata Krishna Rohit
6522ae4fb3
Bugfix on bigendianess by casting size_t to unint32_t
...
The reason for typecasting size_t to unint32_t is that size_t is 8 bytes and uint32_t is only 4 bytes.
If not typecasted Memcpy fails to copy the *correct* four bytes in big endian platforms.
6 years ago
Paul Yang
38d674e86f
Fix json parsing for timestamp ( #115 )
...
* Fix json parsing for timestamp
* Fix json encoding for timestamp
* Implement timestamp_machine to parse timestamp
* Remove comparision for size_t and 0
* Increase defined printer size
* Increase size
* Increase parser size
* Mark json_en_timestamp_machine unused
6 years ago
Joshua Haberman
d1738d4dec
Merge pull request #117 from haberman/cmake
...
Moved upb_msg parts that depend on def to a separate msgfactory.{c,h}.
6 years ago
Josh Haberman
e94ac4f757
Moved upb_msg parts that depend on def to a separate msgfactory.{c,h}.
...
Also got rid of the premature "v1" business that was attempting
to create a binary compatibility story.
Also added an in-progress CMakeLists.txt file.
6 years ago
gerben-s
0a95f73d0d
Merge pull request #116 from haberman/rmgooglepb
...
Removed a bunch of obsolete code.
6 years ago
Josh Haberman
6155ed8b49
Re-add amalgamation rules and remove google protobuf from Travis.
6 years ago
Josh Haberman
1a484d353b
Re-add upb/bindings/stdc++/string.h, which is still used in tests.
6 years ago