1. 29 Jul, 2017 5 commits
  2. 12 Jun, 2017 1 commit
    • Paolo Borelli's avatar
      proto3: make strings default to "" instead of NULL · 2a46af42
      Paolo Borelli authored
      The spec talks about "empty string" and other languages like C#
      return a zero length string and not null.
      This is useful because when moving from proto2's "required string"
      to a proto3's plain string we will be guaranteed that we
      never get a null pointer.
      The tradeoff is adding a special case to the library but avoiding
      a lot of null checks in the calling code.
      The current code is already special casing "" in pack_string.
      2a46af42
  3. 10 Apr, 2017 4 commits
  4. 09 Apr, 2017 5 commits
  5. 27 Feb, 2017 1 commit
  6. 26 Feb, 2017 1 commit
  7. 25 Feb, 2017 17 commits
  8. 05 Dec, 2016 1 commit
    • Josh's avatar
      CMAKE_SOURCE_DIR -> CMAKE_CURRENT_SOURCE_DIR · cfbe34f6
      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.
      cfbe34f6
  9. 27 Nov, 2016 1 commit
  10. 30 Oct, 2016 3 commits
    • Paolo Borelli's avatar
      bump protobuf version in travis to 3.0.2 · 29b25869
      Paolo Borelli authored
      protobuf does not provide configured tarballs anymore, so we need
      to run autogen.sh ourselves.
      29b25869
    • Paolo Borelli's avatar
      Add basic proto3 test · 2f22519f
      Paolo Borelli authored
      Same code of the proto2 test but with the corresponding proto3 file
      2f22519f
    • Paolo Borelli's avatar
      proto3 support · 8194f4d9
      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.
      8194f4d9
  11. 07 Sep, 2016 1 commit