1. 24 Nov, 2014 1 commit
  2. 19 Nov, 2014 1 commit
  3. 15 Nov, 2014 2 commits
  4. 12 Sep, 2014 1 commit
  5. 10 Sep, 2014 1 commit
  6. 08 Sep, 2014 6 commits
  7. 05 Sep, 2014 11 commits
    • Robert Edmonds's avatar
      .travis.yml: fetch the protobuf tarball from GitHub instead of Google Code · faf6244e
      Robert Edmonds authored
      Per the protobuf developers,
      
          We will from everything away from Google Code eventually. We haven't
          decided where to put future release packages yet but as it seems github
          supports this well chances are we'll use github as the canonical location
          for all downloads.
      faf6244e
    • Robert Edmonds's avatar
      .travis.yml: bump protobuf version to 2.6.0 · 51b8da15
      Robert Edmonds authored
      Build with the latest protobuf release, in preparation for adding
      "oneof" support.
      51b8da15
    • Robert Edmonds's avatar
      protobuf-c: eliminate void pointer arithmetic · 6d275c56
      Robert Edmonds authored
      gcc silently treats arithmetic on a void pointer as char pointer
      arithmetic without -pedantic. Other compilers do not. Make it explicit
      that we are doing arithmetic on a pointer with object size 1.
      
      This eliminates the following diagnostic:
      
          protobuf-c/protobuf-c.c: In function 'parse_packed_repeated_member':
          protobuf-c/protobuf-c.c:2404:34: warning: pointer of type 'void *' used in arithmetic [-Wpedantic]
            void *array = *(void **) member + siz * (*p_n);
      
      (I did not find any other instances of 'void *' arithmetic when
      compiling with -pedantic.)
      
      Based on a patch from alex85k (#167).
      6d275c56
    • Robert Edmonds's avatar
      protobuf-c: always define PROTOBUF_C__DEPRECATED · 7e5c09ea
      Robert Edmonds authored
      If we are not building on gcc, PROTOBUF_C__DEPRECATED needs to be
      defined but empty. Previously we were not defining it at all in certain
      situations, which would cause build failures.
      
      Based on a patch from alex85k (#167).
      7e5c09ea
    • Robert Edmonds's avatar
      .travis.yml: try to speed up the build a bit with "make -j2" · 3ba170cc
      Robert Edmonds authored
      According to the travis-ci documentation, VMs are executed with 1.5
      virtual CPU cores, so this should speed up our builds a little bit.
      3ba170cc
    • Robert Edmonds's avatar
      t/test-full.proto: add 'allow_alias' option to TestEnumDupValues · c4a0e693
      Robert Edmonds authored
      protobuf 2.5.0 started warning that we would need to enable the
      'allow_alias' option on this enum due to the duplicate enum values, and
      protobuf 2.6.0 turned this into an error. Turn this option on, now that
      protobuf 2.5.0 is more common (e.g., it's now in Ubuntu 14.04 LTS). This
      will break with older protobuf versions, so we now require >= 2.5.0.
      
      We should now see diagnostics like these disappear from the build log:
      
          [libprotobuf ERROR google/protobuf/descriptor.cc:4153] "foo.VALUE_B" uses the same enum value as "foo.VALUE_A". If this is intended, set 'option allow_alias = true;' to the enum definition.
      
      Based on a patch from Ilya Lipnitskiy.
      c4a0e693
    • Robert Edmonds's avatar
      configure.ac: require protobuf >= 2.5.0 · f25a0f4e
      Robert Edmonds authored
      In order to add compatibility with the latest protobuf 2.6.0 release, we
      need to add an option to the t/test-full.proto schema that was
      introduced in protobuf 2.5.0, so we need to depend on protobuf 2.5.0 or
      higher now.
      f25a0f4e
    • Robert Edmonds's avatar
      .travis.yml: run 'ldconfig' after installing protobuf · 11326ce7
      Robert Edmonds authored
      This should fix the following build failure.
      
          ./protoc-c/protoc-c: error while loading shared libraries: libprotobuf.so.8: cannot open shared object file: No such file or directory
          make: *** [t/test.pb-c.c] Error 127
      11326ce7
    • Robert Edmonds's avatar
    • Robert Edmonds's avatar
      .travis.yml: fix 'language' declaration · 61e5bee0
      Robert Edmonds authored
      It turns out that in YAML,
      
          language: c
          language: cpp
      
      Actually means:
      
          language: cpp
      
      I'm not sure if travis-ci actually supports providing a list of values
      for the 'language' parameter, but let's try it anyway.
      61e5bee0
    • Robert S. Edmonds's avatar
      .travis.yml: install protobuf 2.5.0 from source · 1ccc5d42
      Robert S. Edmonds authored
      The travis-ci environment is based on Ubuntu 12.04 LTS, which has an
      older protobuf version (2.4.1). We need to depend on features that are
      only available in 2.5.0 (and, later, 2.6.0), so instead of satisfying
      the protobuf build dependencies from the Ubuntu repository, download and
      install our own copy of protobuf.
      
      The travis-ci build from this commit should succeed, since we are
      compatible with protobuf 2.5.0.
      
      Based on a patch from Ilya Lipnitskiy.
      1ccc5d42
  8. 03 Sep, 2014 1 commit
  9. 05 Aug, 2014 3 commits
  10. 22 Jul, 2014 3 commits
  11. 15 Jul, 2014 1 commit
  12. 30 Jun, 2014 1 commit
  13. 27 Jun, 2014 4 commits
  14. 19 Jun, 2014 2 commits
  15. 09 Jun, 2014 2 commits
    • Robert Edmonds's avatar
    • Robert Edmonds's avatar
      remove protobuf_c_default_allocator · 3decba7a
      Robert Edmonds authored
      "protobuf_c_default_allocator" is the last bit of global data in
      libprotobuf-c, and it can be hidden with some relatively easy (though
      API/ABI-breaking) changes to ProtobufCBufferSimple.
      
      all exported functions that take a ProtobufCAllocator either use the
      provided allocator (if non-NULL), or switch to the default allocator (if
      NULL). there are now two relatively unambiguous choices when a
      ProtobufCAllocator is required by an exported function:
      
          1) use NULL. the vast majority of callers should pick this option.
      
          2) implement your own allocation functions, and enclose these in a
          ProtobufCAllocator struct.
      
      in previous versions of protobuf-c there were two other possibilities:
      
          3) maybe use &protobuf_c_system_allocator?
      
          4) maybe use &protobuf_c_default_allocator?
      
      this was relatively confusing, and by removing these latter two options
      we can avoid having global library state.
      3decba7a