- 09 Apr, 2017 1 commit
-
-
Paolo Borelli authored
In proto3 the default value is zero (NULL for pointers and 0 for scalars). However when checking we still need to test by type because poinetr types have an extra indirection.
-
- 27 Feb, 2017 1 commit
-
-
Robert Edmonds authored
Remove leftover FIXME comment
-
- 26 Feb, 2017 1 commit
-
-
Paolo Borelli authored
-
- 25 Feb, 2017 17 commits
-
-
Robert Edmonds authored
Add warning flags to my_CFLAGS
-
Robert Edmonds authored
Here 'j' is used as a loop index and there's no need to re-declare it inside this block. Found with -Wshadow.
-
Robert Edmonds authored
-
Robert Edmonds authored
-
Robert Edmonds authored
CMAKE_SOURCE_DIR -> CMAKE_CURRENT_SOURCE_DIR
-
Robert Edmonds authored
Static build for Windows MSVC
-
Robert Edmonds authored
-
Robert Edmonds authored
proto3 support
-
Robert Edmonds authored
Fix "Bad enums with multiple oneofs" (#251)
-
Robert Edmonds authored
-
Robert Edmonds authored
This commit fixes #251, which causes incorrect code to be generated when there are multiple oneofs in the same message. In #221, we added code to force int-sizing for oneof enums, but we only set vars["opt_comma"] initially, before entering the loop over the message's oneofs. This caused commas to be omitted when generating the enums for subsequent oneofs after the first oneof. This commit resets vars["opt_comma"] every time through the loop that generates the enum declarations for the message's oneofs.
-
Robert Edmonds authored
This commit fixes a problem identified in #251. When generating the PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE directive at the end of the enum values generated for a oneof, we inadvertently only included the protobuf class name in the call to the directive. This breaks if there is more than one oneof per protobuf class, which causes duplicate enum names to be generated. This issue is fixed by also appending the oneof's name to the protobuf class name when generating the PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE directive, which should cause unique enum names to be generated. This changes the enum name that is generated, but these names are implementation details since they are sentinel values that only exist to force the compiler to size the enum type correctly. (The test case for #220 is updated since that test relies on the oneof implementation details in the code generator.)
-
Robert Edmonds authored
Document and extend the effect of passing NULL to ..._free_unpacked functions
-
Richard Kettlewell authored
This makes __free_unpacked() consistent with free(), and simplifies callers by allowing them to indiscriminately free message objects without regard to whether they have been allocated or not.
-
Richard Kettlewell authored
-
Robert Edmonds authored
Add test case for #220
-
Robert Edmonds authored
-
- 05 Dec, 2016 1 commit
-
-
Josh authored
This tells CMake to refer to the currently executed `CMakeLists.txt`'s directory instead of the root project directory. This allows protobuf-c to be included as a subdirectory (via `include_subdirectory`) while being innocuous for those that build protobuf-c by itself.
-
- 27 Nov, 2016 1 commit
-
-
AlexMilich authored
-
- 30 Oct, 2016 3 commits
-
-
Paolo Borelli authored
protobuf does not provide configured tarballs anymore, so we need to run autogen.sh ourselves.
-
Paolo Borelli authored
Same code of the proto2 test but with the corresponding proto3 file
-
Paolo Borelli authored
This is a first cut at adding proto3 support. As far as I understand protobuf-c already has pretty much everything needed once it is built using a new version of protobuf itself. The only missing thing is that in proto3 all fields are optional and having to manually set has_foo is inconvenient. This patch special cases the proto3 syntax files so that structs for the bytes, enum and primitive fields do not emit the has_ field. It also adds PROTOBUF_C_LABEL_NONE to the label enum that is used for proto3 fields. When a fields has this label, the quantifier is not consulted and instead the field is packed/unpacked depending on whether it has a value different from NULL/0.
-
- 07 Sep, 2016 6 commits
-
-
Robert Edmonds authored
Make init_value const
-
Robert Edmonds authored
rm argument fix for solaris
-
Robert Edmonds authored
Relax autoconf constraint from v2.64 -> v2.63 (so that it works on SL6)
-
Thomas Köckerbauer authored
-
Thomas Köckerbauer authored
-
Ben Farnham authored
-
- 25 Aug, 2016 2 commits
-
-
Robert Edmonds authored
protobuf-c: fix: make dist
-
Robert Edmonds authored
fixed cmake build if built as part of an external project
-
- 24 Aug, 2016 1 commit
-
-
Gregory Detal authored
remove .pb.{cc,h} in distdir instead of top_distdir in order to prevent removing files from other projects when protobuf-c is included as an autotools subproject. Signed-off-by: Gregory Detal <gregory.detal@tessares.net>
-
- 10 Aug, 2016 1 commit
-
-
Adnan authored
-
- 04 Jul, 2016 1 commit
-
-
Robert Edmonds authored
protoc-c/c_message.cc: Force int size on oneof enums
-
- 17 Jun, 2016 2 commits
-
-
Ilya Lipnitskiy authored
http://lists.llvm.org/pipermail/llvm-foundation/2016-May/000020.html travis-ci/travis-ci#6120
-
Ilya Lipnitskiy authored
Fixes #220. Patch by Dave Benson from the mailing list thread.
-
- 06 May, 2016 1 commit
-
-
Robert Edmonds authored
Fix bigendian -Wunused-label warning
-
- 02 May, 2016 1 commit
-
-
Tomasz Wasilczyk authored
-