Joshua Haberman
fb6f7e9689
Merge pull request #137 from vishalpowar/add_visibility
...
Add visibility
6 years ago
Vishal Powar
7031f77666
Add visibility for use in other projects.
6 years ago
Vishal Powar
7c005e7807
Merge branch 'master' of github.com:google/upb
6 years ago
Joshua Haberman
22be932863
Merge pull request #135 from vishalpowar/cast_correct
...
Explicit cast when creating a new struct
6 years ago
Vishal Powar
f6c33307c4
Fix tests for generated code
6 years ago
Vishal Powar
e2ad6bd146
Fix tests for generated code
6 years ago
Vishal Powar
0811b6fead
Explicit cast when creating a new struct
6 years ago
Joshua Haberman
cb113bc8cc
Merge pull request #134 from haberman/upbc-cpp
...
Added upb compiler written in C++ as a normal protoc plugin.
6 years ago
Josh Haberman
9ce4a77f61
Updates to build system for upb C++ compiler.
6 years ago
Josh Haberman
5f575995b5
Added upb compiler written in C++ as a normal protoc plugin.
6 years ago
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