Brian Duff
ec2f244554
Fix bug with large extension field numbers.
...
Previously, extensions with field numbers greater than 268435455 would
result in a compile time error in generated code that looks something
like this:
Foo.java:3178: error: integer number too large: 3346754610
3346754610);
This is because we were trying to represent the tag number (an
unsigned int) using a java int constant, but java int constants are
signed, and can't exceed Integer.MAX_VALUE.
Fixed by declaring it as a long instead, and casting it down to an
int in the implementation. This is safe, because the tag value always
fits in 32 bis.
Change-Id: If2017bacb4e20af667eaeaf9b65ddc2c30a7709f
10 years ago
Bo Yang
46bd60b92f
Modify directory to use in test
...
Change-Id: Iede1dc4e70427663e0d3c5304fa86b3aebf492b7
10 years ago
Bo Yang
9a12185323
Handle un-handled cases of TestOneof2 in unittest
...
Change-Id: I8f082ee3117ed873ab472a539867ff7cae58e8fd
10 years ago
Jie Luo
5a811ac6f9
fix bug for Field Presence
10 years ago
Jie Luo
856ced5d76
Field Presence: remove has methods for optional non-message fields in proto3
10 years ago
Ezequiel Lara Gomez
fb28d73204
Fix unittest in i386
10 years ago
Bo Yang
d6c9f644ac
internal changes
...
Change-Id: I66f216c70a19f44637090878d7e442d4d0f8991b
10 years ago
Feng Xiao
7ddbf87008
Include well-known type protos in "make install".
10 years ago
Feng Xiao
ca9d1a053a
Include all well-known type protos.
...
Change-Id: I122f1cee71a8a739ea603e52582cb0fa9698f0ed
10 years ago
Jan Tattermusch
7eaf438031
forgot to include header files into automake template
10 years ago
Jan Tattermusch
8e190d498c
temporarily removing csharp_umbrella_namespace file option
10 years ago
Jan Tattermusch
83a5991d12
removing csharp_property_name field option
10 years ago
Jan Tattermusch
b36420addb
one more fix to csharp_umbrella_namespace comment
10 years ago
Jan Tattermusch
b6555b1da0
fix: do not mention umbrella_classname in comment
10 years ago
Jan Tattermusch
abcde243fe
Fixed comment for csharp_umbrella_namespace (nest_classes has been removed)
10 years ago
Jan Tattermusch
2c2f76c50f
fixing field number of csharp_umbrella_namespace option
10 years ago
Jan Tattermusch
333d200a96
integrate CalcSerializedSize() fix from protobuf-csharp-port issue 84
10 years ago
Jan Tattermusch
7cc05ecb3a
fixing implementation of GetFileUmbrellaNamespace
10 years ago
Jan Tattermusch
5ac8de5b46
implemented HasRequiredFields logic
10 years ago
Jan Tattermusch
db9060dc61
addressed TODO for lite runtime
10 years ago
Jan Tattermusch
d92de1742d
creating private ctor for builders is now the default (as it used to be for old codegen)
10 years ago
Jan Tattermusch
f61e1791c0
output file naming logic, configurable file extension, comment rewording
10 years ago
Jan Tattermusch
8cec65e761
added support for deprecated fields, reworded some todos
10 years ago
Jan Tattermusch
16a3e2b914
enable overriding of property name using csharp_property_name
10 years ago
Jan Tattermusch
44664bb705
updated C# codegen to use restricted set of csharp options from descriptor.proto
10 years ago
Jan Tattermusch
b52cf04b3c
restricted number of csharp options and regenerated descriptor.proto
10 years ago
Tamir Duberstein
9f42f5f4a4
[PYTHON] Drop dependency on 'google.apputils'.
...
Use stdlib's 'unittest' instead.
10 years ago
Daniel Martin
0f1393d66e
More 'int' return value documentation
10 years ago
Daniel Martin
153a226a2a
CR feedback: spacing, document return values
10 years ago
Tamir Duberstein
53bee665f8
Change fixture name to be consistent
...
This fixes the problem where `make check` generates files not ignored
by `.gitignore`.
10 years ago
Kenton Varda
60df829ae4
Delete "SEBS" (aka: Clean up Kenton's old trash)
...
The file `SEBS` is a build file for a toy build system I was writing in my spare time six years ago, back when I maintained protobufs. Arguably it was never appropriate for me to have placed this file in the protobuf tree, but it was convenient at the time and didn't seem to hurt anything. It clearly doesn't belong here now, though.
10 years ago
Jan Tattermusch
685ae36ca2
Rewrote C# protogen to C++ (initial version)
10 years ago
Tamir Duberstein
ed715048c6
Add OS X to travis; fix tests to pass on OS X
10 years ago
Chris Conroy
0d77c824e7
Sanitize Enum names from collisions with reserved words.
10 years ago
Bo Yang
12a91417fb
Revert pull request 175: Add support for the TILE-Gx processor family.
10 years ago
Feng Xiao
9d31c227a3
Add a missing proto file.
...
Change-Id: Ic98584616bd6ee49680273f0cdbe6d9c038ec0e9
10 years ago
Jisi Liu
6c8a036e3e
Fix tile atomicops macro.
...
Change-Id: I1a3acadd059f87c26a2e26f3b7a169c0780e981e
10 years ago
Jisi Liu
329fa02b42
Initialize data members in constructors instead of direct initialize in
...
class definition, which is a C++11 extension.
Change-Id: I477fe484d737f4c60c519d68f431940ffaa33431
10 years ago
Jisi Liu
f0e8df3b66
use is_proto_enum instead of is_enum for repeated accessor field.
...
The later is not supported by some versions of MSVC and the former is
more accurate for the use case.
Change-Id: I7096226b1ebfef8340d288bbaf2788540aa3e97f
10 years ago
Jisi Liu
4065a31644
Fix hash.h for MSVC and platforms without hash map/set support.
...
Change-Id: Ic0fdb52c17b9495c73b8ce15879531383a148585
10 years ago
Jisi Liu
14fe0c99bb
Fix hash_map type parameter to add Alloc for other platforms.
...
Change-Id: Idc5fb65a2cc469d55aff6f2cde0b51b326be0963
10 years ago
Jisi Liu
0a25cfe69d
Use portable GOOGLE_PROTOBUF_THREAD_LOCAL instead of __thread.
...
Change-Id: Iaa75f8333541bc378bea699e7f147c7f17b652ad
10 years ago
Jisi Liu
885b612f74
Down integrate from Google internal branch for C++ and Java.
...
- Maps for C++ lite
- C++ Arena optimizations.
- Java Lite runtime code size optimization.
Change-Id: I7537a4357c1cb385d23f9e8aa7ffdfeefe079f13
10 years ago
Jisi Liu
97dacc44af
Fix the order of BUILT_FILES so that pbconfig.h will be built before
...
anyother targets.
Change-Id: I507009cd92a711739d7d58ccee93dfbf0a9fe135
10 years ago
Jisi Liu
a86baaa256
Exclude pbconfg.h from dist, otherwise it breaks VS builds.
...
Change-Id: I7f745929b137b93c122448a4a2d9a7bbab6648d6
10 years ago
Josh Haberman
0b70a43736
Fixes for Python/C++ implementation in open-source:
...
* Rosy hack doesn't apply (that test should be removed
for the open-source release).
* Added our own copy of parameterized.py (the open-source
version of Google Apputils doesn't contain it).
* The C++ Descriptor object didn't implement extension_ranges.
* Had to implement a hack around returning EncodeError, to
work around the module-loading behavior of the test runner.
10 years ago
Jisi Liu
b67096072b
Include shared_ptr.h into headers to make maps proto work. It is used
...
in the map_field_inl.h
Change-Id: Ieeaab5507ee34b317d76b5937beb67c298905eb4
10 years ago
Jisi Liu
ada6556785
Down integrate from Google internal.
...
Change-Id: I34d301133eea9c6f3a822c47d1f91e136fd33145
10 years ago
Jisi Liu
df184fba00
Make maps fields work on installed C++ protobufs.
...
Change-Id: Id937e25bbb35968ee76c92bd4a8ce6247408c443
10 years ago
Jisi Liu
e70329c6c0
Propogate onChange() event when getFooBuilder() is on an oneof message
...
field.
Change-Id: Idb5b53da5accd24038a895aba49b684eeee95814
10 years ago