Joshua Haberman
91fd76cc9c
Merge pull request #258 from haberman/bazel_version
...
Remove compatibility code for old Bazel versions.
5 years ago
Joshua Haberman
d0d5339620
Removed .gitmodules, we don't use submodules any more.
...
All dependencies are through Bazel now.
5 years ago
Joshua Haberman
6c5d5afc43
Remove compatibility code for old Bazel versions.
5 years ago
Joshua Haberman
c1357afb2e
Merge pull request #230 from moroten/maybe-deps
...
Make workspace_deps.bzl overridable using maybe()
5 years ago
Joshua Haberman
a3d693544b
Merge pull request #257 from haberman/warnings2
...
Fixed narrowing warnings in text_encode.c.
5 years ago
Joshua Haberman
63e673383b
Fixed narrowing warnings in text_encode.c.
5 years ago
Joshua Haberman
39bc93a527
Merge pull request #252 from haberman/jsondecode
...
JSON decoder and bugfixes to encoder
5 years ago
Joshua Haberman
0fdd65f223
Merge branch 'master' into jsondecode
5 years ago
Joshua Haberman
82af3d661c
Merge pull request #255 from protocolbuffers/const-array
...
Making sure _upb_fieldtype_to_sizelg2 is readonly
5 years ago
Nicolas Noble
90b3a20af0
Making sure _upb_fieldtype_to_sizelg2 is readonly
...
This will hopefully move that array into a readonly data section.
5 years ago
Joshua Haberman
97bcd5276c
Merge pull request #253 from haberman/warnings
...
The compile is now clean of -Wshorten-64-to-32 warnings.
5 years ago
Joshua Haberman
aacdcf8b91
The compile is now clean of -Wshorten-64-to-32 warnings.
5 years ago
Joshua Haberman
5667a7a806
Removed stray assert, causing C90 build errors.
5 years ago
Joshua Haberman
23a5af3513
[json] fixed all remaining conformance bugs.
5 years ago
Joshua Haberman
6ec4df82c1
Updated other parts of upb for new JSON name API.
5 years ago
Joshua Haberman
a292261aeb
Added JSON decoder to conformance tests, and fixed tons of bugs.
...
We are now down to only 10 conformance failures across all of upb.
5 years ago
Joshua Haberman
d49c1db6c2
New JSON decoder, string->msg using reflection.
...
This compiles successfully, but I have not executed
it even once.
5 years ago
Joshua Haberman
e70853d71f
Merge pull request #251 from haberman/emptyfix
...
Fixed code generator for upbdefs when a file has no messages.
5 years ago
Joshua Haberman
b409f8cd85
Fixed code generator for upbdefs when a file has no messages.
5 years ago
Joshua Haberman
58010a3f73
Another fix for google import.
5 years ago
Joshua Haberman
4b8c04e521
Ran buildifier and fixed a few things for google3 import.
5 years ago
Joshua Haberman
95fb9b2e38
Merge pull request #250 from haberman/jsonencode
...
JSON encoder for upb_msg.
5 years ago
Joshua Haberman
d7d72f0075
Updated CMakeLists.txt.
5 years ago
Joshua Haberman
872f4ceb8f
[json encoder] passes all conformance tests.
5 years ago
Joshua Haberman
384cf15b0f
[json encoder] passes almost all conformance tests.
5 years ago
Joshua Haberman
6e9db7dafc
Fixed JSON encoder so that it compiles.
5 years ago
Joshua Haberman
43d8673623
Merge branch 'master' into jsonencode
5 years ago
Joshua Haberman
02c89a8b15
Renamed textencode -> text_encode for greater readability. ( #249 )
5 years ago
Nicolas Noble
bb2db35464
Fixing Windows build. ( #247 )
...
https://godbolt.org/z/3bSxGs
5 years ago
Joshua Haberman
60d0966a0b
[jsonencoder]: wrote most of the code, haven't even compiled yet, let alone tested.
5 years ago
Joshua Haberman
1da9cfde77
A few bugfixes.
5 years ago
Joshua Haberman
ca84145476
[decoder] fix for buf=NULL, size=0 case. ( #246 )
5 years ago
Joshua Haberman
4c6dcc3c6b
[textformat]: added missing newline when a message opens. ( #245 )
...
* [textformat]: added missing newline when a message opens.
* Added tostring() support to Lua that prints to text format.
Also fixed a gnarly bug that this exposed.
5 years ago
Joshua Haberman
3d955e684c
Added "extern C" blocks to textencode. ( #244 )
...
* Added "extern C" blocks to textencode.
* Added accidentally-deleted test_upb.lua, deleted unneeded test.proto.
5 years ago
Joshua Haberman
ca512852f3
Fixed parsing for string->double maps. ( #243 )
...
Map parsing/serializing relies on map entries always
having a predictable order. The code that generates
layout was not respecting this in the case of string
keys and primitive values.
5 years ago
Joshua Haberman
ce1a399a19
Text format serializer for upb_msg ( #242 )
...
* WIP, first version of encoder.
* More progress on text encoder.
* A lot of progress on the text printer.
* Added textencode header file.
* Text encoder now passes conformance tests.
These aren't very stringent though, and more testing is needed.
* Print text into static buffer. Passes all conformance tests.
* Fixed kokoro errors.
* Fix for indent depth when printing map fields.
5 years ago
Joshua Haberman
888f35cae6
Merge pull request #241 from haberman/conformance-fixes
...
Refactored conformance_upb to use reflection, and fixed a decoder bug with unknown groups.
5 years ago
Joshua Haberman
46b93f8cea
A bit more cleanup in the decoder.
5 years ago
Joshua Haberman
ad2eb65a4b
Refactored conformance_upb to use reflection, and fixed a decoder bug.
5 years ago
Joshua Haberman
a202c5f84d
Merge pull request #234 from haberman/parser
...
Removed upb_decframe structure and used explicit pointer param/return
5 years ago
Joshua Haberman
4c974cf72d
Fixed generated files.
5 years ago
Joshua Haberman
9a870d957f
Removed upb_decframe and made ptr an explicit parameter and return.
5 years ago
Joshua Haberman
a6c54729df
Added UPB_ASSUME(), to work around warnings when optimization is enabled:
...
upb/json/parser.rl: In function 'end_member.isra.150':
bazel-out/k8-opt/bin/upb.c:5536:13: error: 'sel' may be used uninitialized in this function [-Werror=maybe-uninitialized]
upb_func *ret = (upb_func *)h->table[s].func;
5 years ago
Joshua Haberman
9e1f89ef2c
Merge pull request #224 from haberman/maps
...
Implemented support for maps (generated & reflection), and improved reflection API
5 years ago
Joshua Haberman
ce0496eb86
Merge branch 'master' into maps
5 years ago
Joshua Haberman
e911aae5f6
Factored upb_map_entry into a shared place.
5 years ago
Joshua Haberman
d8f3d6f9d4
Merge pull request #233 from annarev/add_port_dependencies
...
Add port dependencies
5 years ago
Anna R
a27429f265
Add port_def.inc and port_undef.inc to generated code hdrs
5 years ago
Anna R
3797ad2217
port should not be public
5 years ago
Anna R
578dc32208
Set port visibility to public.
5 years ago