Eric Salo
85534bbb1e
remove unused #includes from reflection.h
...
The functions declared in reflection.h use neither arrays nor maps, so (a) stop including the array and map definitions, and (b) update the handful of other source files which were relying on that transitivity.
PiperOrigin-RevId: 472627278
2 years ago
Protobuf Team Bot
97993b219d
rename upb::SymbolTable as upb::DefPool
...
PiperOrigin-RevId: 456147709
2 years ago
Protobuf Team Bot
65bde4e75b
upb_Encode() now returns a status value
...
PiperOrigin-RevId: 454740100
2 years ago
Joshua Haberman
a60e9a379e
Fixed the mingw build by adding compatibility code for vsnprintf()
...
PiperOrigin-RevId: 448611947
3 years ago
Joshua Haberman
2eb973f53a
Added a GitHub Action to test Python+upb on Windows, and fixed a couple of bugs this revealed.
...
PiperOrigin-RevId: 446322046
3 years ago
Protobuf Team
78f5af8103
Internal change
...
PiperOrigin-RevId: 435060849
3 years ago
Protobuf Team
b8edc7153f
Internal change
...
PiperOrigin-RevId: 435056074
3 years ago
Joshua Haberman
ecc8bae4ce
Fix for proto2 files that use proto3 enums.
3 years ago
Joshua Haberman
85072ce04e
Fixed a bug in enum layout generation.
3 years ago
Joshua Haberman
65a85a63c8
Fixed two bugs with proto2 enums:
...
1. The mask was getting improperly truncated for values 32-63.
2. We were not handling duplicated enum values.
3 years ago
Joshua Haberman
215fe1eda8
Added another missing dep.
3 years ago
Joshua Haberman
d55fa1808b
Added missing dep to def_to_proto_test.
3 years ago
Joshua Haberman
f550b9d6a1
Strip weak_import_test.proto for google3.
3 years ago
Joshua Haberman
efd0b594cb
def_to_proto protos.
3 years ago
Matt Kulukundis
c49e6dfbac
Switch to using :port
3 years ago
Matt Kulukundis
edd1dd30e7
Fix missing build deps
3 years ago
Matt Kulukundis
bf04341805
more licenses
3 years ago
Matt Kulukundis
cce4cffd85
more licenses
3 years ago
Joshua Haberman
826eca6742
Enabled ubsan tests and fixed ubsan failures.
3 years ago
Joshua Haberman
0c541f3305
Single encode.
3 years ago
Joshua Haberman
499c2cc8b1
upb_extreg, upb_msg
3 years ago
Joshua Haberman
1c955f37ce
Mass API rename and clang-reformat ( #485 )
...
* Wave 1: upb_fielddef.
* upb_fielddef itself.
* upb_oneofdef.
* upb_msgdef.
* ExtensionRange.
* upb_enumdef
* upb_enumvaldef
* upb_filedef
* upb_methoddef
* upb_servicedef
* upb_symtab
* upb_defpool_init
* upb_wellknown and upb_syntax_t
* Some constants.
* upb_status
* upb_strview
* upb_arena
* upb.h constants
* reflection
* encode
* JSON decode.
* json encode.
* msg_internal.
* Formatted with clang-format.
* Some naming fixups and comment reformatting.
* More refinements.
* A few more stragglers.
* Fixed PyObject_HEAD with semicolon. Removed TODO entries.
3 years ago
Joshua Haberman
8c256cc677
Addressed PR comments.
3 years ago
Joshua Haberman
6c2eeb1f41
Added C escaping in def_to_proto.
3 years ago
Joshua Haberman
e4c88ad35a
Addressed PR comments.
3 years ago
Joshua Haberman
b0f81596be
All tests passing!
3 years ago
Joshua Haberman
b75f7cff17
Addressed PR comments.
3 years ago
Joshua Haberman
fd9d19d665
Properly compare Python unknown fields.
3 years ago
Joshua Haberman
9bff7b82d1
Unknown field comparison is passing tests.
3 years ago
Joshua Haberman
732a21bb59
Added unknown field comparison to compare.h/compare.c.
3 years ago
Joshua Haberman
df77ca5dbb
Check extension field numbers against extension ranges.
...
This makes extension checking more strict in most cases.
However it also fixes a bug with MessageSet where we were being
too strict. MessageSet allows larger extension numbers than
normal extensions do.
3 years ago
Joshua Haberman
c59d8f8eb7
Addressed PR comments and fixed the broken test.
3 years ago
Joshua Haberman
d0795a29d9
Test for def_to_proto is working.
3 years ago
Joshua Haberman
0be33b1e3c
WIP.
3 years ago
Joshua Haberman
1c941dbf16
Added a clarifying comment.
3 years ago
Joshua Haberman
50b360f974
Addressed PR comments.
3 years ago
Joshua Haberman
cfda119c52
Updated the doc comments.
3 years ago
Joshua Haberman
880ca37531
Functionality is complete and it is passing all tests.
3 years ago
Joshua Haberman
5817886392
Simplified the field path representation.
3 years ago
Joshua Haberman
0834ee254b
Baseline code.
3 years ago