1. 09 Apr, 2017 1 commit
    • Paolo Borelli's avatar
      Fix "is zeroish" evaluation for proto3 · 1c8805a7
      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.
      1c8805a7
  2. 27 Feb, 2017 1 commit
  3. 26 Feb, 2017 1 commit
  4. 25 Feb, 2017 17 commits
  5. 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
  6. 27 Nov, 2016 1 commit
  7. 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
  8. 07 Sep, 2016 6 commits
  9. 25 Aug, 2016 2 commits
  10. 24 Aug, 2016 1 commit
  11. 10 Aug, 2016 1 commit
  12. 04 Jul, 2016 1 commit
  13. 17 Jun, 2016 2 commits
  14. 06 May, 2016 1 commit
  15. 02 May, 2016 1 commit