Jisi Liu
7a00a1e424
Add shutdown code for several newly introduced leaks;
...
Disable commandline interface test for heap check tests.
Change-Id: I02aa2ad9704e3c70dcecae8b3b3557b18607d455
10 years ago
Jisi Liu
7c43f1700c
Use static_cast instead of dynamic_cast in arena unittest so that it can
...
pass in systems without rtti.
Change-Id: Ib32b47a66f14928de9399c49dbdb07263a30d1bc
10 years ago
Jisi Liu
a6fc5da0fc
Fix review comments.
...
Change-Id: Iafd4a3aa9d55e31478bf070311eeadfe95ece4d7
10 years ago
Jisi Liu
f2cf6cdcb2
Remove the unused set common oneof variables in helper
10 years ago
Jisi Liu
7b72a24a20
fix equal and hash for bytes field for javanano oneof
10 years ago
Jisi Liu
3accf81ea9
Clear oneofs.
10 years ago
Jisi Liu
f173cdeb02
hashcode and equals for oneofs in nano.
10 years ago
Jisi Liu
06a2e29855
Equals for message oneof field in nano.
10 years ago
Jisi Liu
c72d3d51ff
Oneof message level elements (consts, case getter/clear) and messsage type field oneof support.
10 years ago
Jisi Liu
7794a98ff4
Initial check-in for message oneof.
10 years ago
Jisi Liu
33222b5a02
Initial check in for primitive oneof fields.
10 years ago
Josh Haberman
cb3caf1e61
Integrate changes from Google open-source branch.
10 years ago
Chris Fallin
a2bea0a001
Properly support maps in Ruby protoc and another bugfix.
...
Previously, we supported map fields in the Ruby DSL. However, we never
connected the final link in the chain and generated `map` DSL commands
for map fields in `.proto` files. My apologies -- I had been testing
with the DSL directly so I missed this.
Also fixed a handlerdata-setup-infinite-loop when a map value field's
type is its containing message.
10 years ago
Gordana Cmiljanovic
b61b0c3304
MIPS: remove immediate constraint within CompareAndSwap.
...
Improper use of immediate constraint is slightly non-optimal with gcc/gnu-as
but may cause breakage with clang.
10 years ago
Nobuaki Sukegawa
de525ec219
Add missing LIBPROTOC_EXPORT to ruby generator
10 years ago
Jisi Liu
12d8a514c8
Get the map factory per mergeFrom() call for JavaNano.
10 years ago
Jisi Liu
d9a6f27bc3
implement hashCode() for JavaNano maps.
10 years ago
Jisi Liu
1536e93349
Implement Equals for nano.
10 years ago
Jisi Liu
bd3573cb09
Fix the behavior when merging conflicting keys, the new value always
...
override the existing one even for message types.
10 years ago
Jisi Liu
3c0355ef37
Moving internal code to InternalNano and rename MapUtil to MapFactories.
10 years ago
Jisi Liu
d5839d2b4d
parsing and serialzation for maps in JavaNano.
10 years ago
Jisi Liu
4d64e65f09
Parsing for Maps in JavaNano
10 years ago
Jisi Liu
4a99897c0b
Use map generator for maps field; skip entry message.
10 years ago
Florian Enner
e544b38815
removed accidental whitespace
10 years ago
Florian Enner
e1e86b02a8
replaced type fix with the recommended way
10 years ago
Florian Enner
df4730ca9c
fixed MSVC compile error
...
<stdint.h> is not part of the standard, so I've added a workaround.
10 years ago
Jisi Liu
dce816593d
Initial checkin for maps support in JavaNano.
10 years ago
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
f01c1441bc
Fix illegal C++ use of reinterpret_cast<> to cast between nullptr_t and a pointer.
10 years ago
Chris Fallin
b0670ddae7
Fix golden-file Ruby test to work with out-of-tree builds.
10 years ago
Chris Fallin
3f3820d8f8
Two tests for Ruby code generator:
...
- A golden-file test that ensures protoc produces known-valid output.
- A Ruby test that loads that golden file and ensures it actually works
with the extension.
This split strategy allows us to test end-to-end without needing to
integrate the Ruby gem build system and the protoc build system. This is
desirable because we do not want a gem build/install to depend on
building protoc, and we do not want building protoc to depend on
building and testing the gem.
10 years ago
Chris Fallin
7c4bbf07a5
Support oneofs in the Ruby code generator.
10 years ago
zhangkun83
a6b3ab09e8
Align backslash vertically
10 years ago
zhangkun83
aa1713d9a4
Include names.h as java_names.h in the opensource tree
10 years ago
Kal Conley
c3e928021f
Improved little endian byte order detection
...
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.
10 years ago
Chris Fallin
5ce69e991a
Support Ruby code generation only for proto3.
10 years ago
Feng Xiao
044e095a9b
Add missing header files in src/Makefile.am
10 years ago
Chris Fallin
91473dcebf
Rename protobuf Ruby module to google/protobuf and rework its build
...
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'.
10 years ago
Krishna
2e9f5e3bac
Reverting the space at the end for both files changed
10 years ago
Krishna
91552adb77
Reverting the space at the end
10 years ago
Krishna
22f96a713c
Returned print_indent and print_outdent back to printservicestub and printserviceclass in python generator
10 years ago
Krishna
060a2096a3
Reverted changes to cpp_helpers.cc and made code reviews to python_geenerator.cc
10 years ago
Krishna
7654f78029
Fixed bugs
10 years ago
Krishna
a761f061f4
Source code refactoring. Extracted common functionality in cpp_helpers.cc and python/python_generator.cc
10 years ago
Feng Xiao
8d5d7cc6d0
Fix LIBPROTOBUF_PROTOBUF annotations for buliding protobuf as DLLs.
10 years ago
Chris Fallin
973f425725
Provide a Ruby extension.
...
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.
10 years ago
Feng Xiao
496d47c27f
Remove map_field.cc from lite-runtime.
10 years ago
Feng Xiao
be20ae0b69
Fix compile issues and test failures in VS2008.
10 years ago
Feng Xiao
d77877808f
Fix thread local annotatoin and add back type traits is_convertable for MSVC
10 years ago
Feng Xiao
0eaae1e6ce
Replace is_enum with is_proto_enum because is_enum is not supported on some platforms.
10 years ago
Feng Xiao
137dd0f17f
Delete some globals in ShutdownProtobufLibrary().
10 years ago