| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Including <sys/param.h> on Mac/iOS doesn't define __BYTE_ORDER so
PROTOBUF_LITTLE_ENDIAN was never being defined. This commit adds a check
for the __LITTLE_ENDIAN__ macro which is defined by clang and Apple gcc on
little endian architectures.
|
| |
|
| |
|
|
|
|
|
|
| |
system. The Ruby module build now uses an amalgamated distribution of
upb, and successfully builds a Ruby gem called 'google-protobuf' with
module 'google/protobuf'.
|
|\
| |
| | |
Source code refactoring. Extracted common functionality in cpp_helpers.c...
|
| | |
|
| | |
|
| |
| |
| |
| | |
printserviceclass in python generator
|
| | |
|
| | |
|
| |
| |
| |
| | |
and python/python_generator.cc
|
|\ \
| | |
| | | |
Make C++ code generation of string oneof field compatible with C++11
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
string oneof field was generated into "const ArenaStringPtr" field inside
"default_oneof_instance_" struct (of name "<class name>OneofInstance").
On the other hand, in C++11, const field of type with trivial default
constructor causes enclosing type's implicit default constructor to be deleted.
Since ArenaStringPtr has tirvial default constructor, this caused default
constructor of "default_oneof_instance_" struct to be deleted, making the
constructor call inside generated code invalid and fail to compile.
|
| | | |
|
| |/
| |
| |
| |
| | |
Preprocessor token right after string literal without whitespace results
in parse failure in C++11.
|
|\ \
| | |
| | |
| | |
| | | |
Conflicts:
configure.ac
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
platforms.
|
| | | |
|
| | |
| | |
| | |
| | | |
tests with macro PROTOBUF_HAS_DEATH_TEST.
|
| |/ |
|
|/
|
|
|
|
| |
This adds a Ruby extension in ruby/ that is based on the 'upb' library
(now included as a submodule), and adds support for Ruby code generation
to the protoc compiler.
|
|\
| |
| | |
Get rid of some build warnings.
|
| | |
|
|\ \
| |/
|/| |
Report a warning if the proto file doesn't have a syntax statement.
|
| | |
|
|\ \
| | |
| | | |
Fix typo
|
| | | |
|
|/ / |
|
|\ \ |
|
| | | |
|
| | |
| | |
| | |
| | | |
warning when using clang with -pedantic switch
|
|/ / |
|
| | |
|
|\ \
| | |
| | |
| | | |
Source: https://android.googlesource.com/platform/external/protobuf.git
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Make the clear() method stripped in reftypes_compat_mode.
Change-Id: I0ec35537856f59a6ecf231bfd74df995c858e2b2
|
| | |
| | |
| | |
| | |
| | |
| | | |
This is a compatibility shim.
Change-Id: Ia0b417d4621e391ede618d0b3b1c470c9896e0ff
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In the current implementation, a message with the same amount of null or
equal-valued fields as a different message type will have the same
hashCode. This adds more variety by including the hashCode of the
class's name in the hashCode calculations.
Change-Id: I284e3e6d198ad8037815948d1f65686465ffd623
Signed-off-by: Jason Neufeld <jneufeld@google.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The behavior of the string ctor is undefined when you pass NULL. This
is checked strictly in C++11, so fails to compile.
Change-Id: Id5e0984ad1d37f2d504f7c42ac23e52ed4a58903
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of publishing its class I chose to encapsulate the troublesome
references in equals()/hashCode() in the generated code into superclass
methods in ExtendableMessageNano.
Changed a couple of java packages in the test suite to catch this issue
easier in the future.
Change-Id: I43f88411f63bb6f3ffc8d63361f2f77bebf6220a
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This CL adds the "parcelable_messages" option. When enabled, all
generated message classes will conform to the Android Parcelable
contract. This is achieved by introducing a new parent class for
generated classes which implements the required functionality.
Since the store_unknown_fields option also makes use of a superclass,
ExtendableMessageNano, we have two versions of the new Parcelable
superclass: one extending MessageNano, and one extending
ExtendableMessageNano. These classes are otherwise identical.
As these classes depend on Android framework jars, they are not
included in the host .jar build of the nanoproto library.
Finally, add a test suite for running tests of Android-specific
functionality, as this cannot be done on a desktop JVM.
Change-Id: Icc2a257f03317e947f7078dbb9857c3286857497
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Nano proto compiler normally throws an error if any service is
defined. If --ignore-services=true is set, no error is thrown and the
service is simply skipped.
Change-Id: Id82583555085cc55550d03a485d3f0189885240b
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This avoids a race-condition when cachedSize is momentarily set to 0
for non-empty messages if multiple threads call getSerializedSize
(e.g. during serialization).
This is a retry of https://android-review.googlesource.com/#/c/88570/.
getSerializedSize() has been kept non-final so that messages generated
with a previous version of the compiler will not break.
Change-Id: I8d8154a10938cde579ae19c55eae55b1e70e0bda
|
| | |
| | |
| | |
| | | |
This reverts commit c6e12c6702ca764486f952654ba1568f00efe813.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This avoids a race-condition when cachedSize is momentarily set to 0
for non-empty messages if multiple threads call getSerializedSize
(e.g. during serialization).
Change-Id: I15a8ded92edbf41bf1c8d787960c5bbbc8a323c5
|
| |\ \ |
|