Eric Salo
f6307877d3
move portability stuff into upb/port/
...
Also delete redundant system #includes that are already pulled in by port/def.inc
PiperOrigin-RevId: 486398989
2 years ago
Eric Salo
edecfd5eb0
upb: use the new reflection headers
...
Reflection headers now live in upb/reflection/ so update our include statements to
reflect this. (See what I did there?)
PiperOrigin-RevId: 474596615
2 years ago
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
79b735a7d7
Make upb numpy type checks consistent with pure python and cpp.
...
PiperOrigin-RevId: 464907203
2 years ago
Joshua Haberman
12fffeb9c3
Rename CMessage -> Message, to make the change in https://github.com/protocolbuffers/upb/pull/617 work as intended.
...
The previous change did not have the desired effect, because the generated code uses the class named "Message" instead of "CMessage."
There was no real need to use the class "CMessage" instead of "Message." The new name is simpler and will make the previous change work.
PiperOrigin-RevId: 449309343
3 years ago
Joshua Haberman
62af892ddf
Fixed the build for Python 3.7.
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
bca2688f3a
Implemented weird behavior when a field contains invalid UTF-8.
3 years ago
Joshua Haberman
586f84cd30
Properly check type of integers when converting.
3 years ago
Joshua Haberman
0606564fd5
Addressed PR comments.
3 years ago
Joshua Haberman
480a33f2a4
Fixed message equality for extensions.
3 years ago
Joshua Haberman
55a24d94d3
Added missing conversion of message values.
3 years ago
Joshua Haberman
b75f7cff17
Addressed PR comments.
3 years ago
Joshua Haberman
1aa7200dc6
Addressed PR comments.
3 years ago
Joshua Haberman
fd9d19d665
Properly compare Python unknown fields.
3 years ago
Joshua Haberman
1e1adc6a34
PR comments and WIP.
3 years ago
Joshua Haberman
1845997498
Added comments.
3 years ago