Skip to content
Snippets Groups Projects
  1. May 05, 2016
  2. Mar 10, 2016
  3. Mar 07, 2016
  4. Mar 04, 2016
  5. Feb 20, 2016
  6. Feb 19, 2016
  7. Feb 13, 2016
  8. Feb 07, 2016
  9. Feb 06, 2016
  10. Jan 27, 2016
  11. Jan 26, 2016
    • Petteri Aimonen's avatar
      Get rid of type punning in pb_encode_fixedXX(). · d79b15d8
      Petteri Aimonen authored
      This was never very clean code, but it was fast. Hopefully
      compilers are smart enough to optimize it away, or the speed
      difference is not very large. This should be checked.
      
      However working code is always more important than fast code,
      and the previous way couldn't really work for platforms that
      do not have byte-sized memory access. Related to PR #191.
      d79b15d8
  12. Dec 16, 2015
    • Petteri Aimonen's avatar
      Merge pull request #190 from aeruder/master · cad502a1
      Petteri Aimonen authored
      pb_istream_from_buffer: add const to prototype
      cad502a1
    • Andrew Ruder's avatar
      pb_istream_from_buffer: add const to prototype · 3d361579
      Andrew Ruder authored
      This commit changes the prototype for pb_istream_from_buffer from:
        pb_istream_t pb_istream_from_buffer(uint8_t *buf, size_t bufsize);
      to
        pb_istream_t pb_istream_from_buffer(const uint8_t *buf, size_t bufsize);
      
      This allows pb_istream_from_buffer users to point to const buffers
      without having to inspect code (to ensure practical const-ness) and then be
      forced to manually cast away const.
      
      In order to not break compatibility with existing programs (by
      introducing a const/non-const union in the pb_istream_t state) we simply
      cast away the const in pb_istream_from_buffer and re-apply it when
      possible in the callbacks.  Unfortunately we lose any compiler help in
      the callbacks to ensure we are treating the buffer as const but manual
      inspection is easy enough.
      3d361579
  13. Nov 21, 2015
  14. Nov 20, 2015
  15. Nov 15, 2015
  16. Nov 14, 2015
  17. Nov 11, 2015
  18. Oct 25, 2015
  19. Oct 24, 2015
  20. Oct 17, 2015
  21. Oct 15, 2015
    • Kyle Manna's avatar
      examples: cmake_simple: Use auto discovered path · 6cedf928
      Kyle Manna authored
      * No need to specify the src path and the module path. Let cmake do it.
      6cedf928
    • Kyle Manna's avatar
      cmake: Auto discover NANOPB_SRC_ROOT_FOLDER · 863dddca
      Kyle Manna authored
      * Use CMAKE_CURRENT_LIST_DIR to learn the path of the currently running
        file to determine location of NanoPB.
      * Simplifies use in other projects.
      863dddca
    • Kyle Manna's avatar
      cmake: Build generator files in build directory · a97617bb
      Kyle Manna authored
      Treat the source directory as immutable.  Copy the generator directory
      which previously generated files in-tree to the build directory and
      then generate files.
      
      Many emerging continuous integration build systems test builds across
      multiple versions of dependencies protobuf and python versions in
      particular.  The previous source tree builds resulted in stale files
      from the last build breaking the current build.  By placing the build
      files in the build directory, the build system automatically removes
      stale files (removes output build directory) and regenerates them as
      necessary.
      a97617bb
  22. Oct 08, 2015
  23. Oct 05, 2015
  24. Oct 01, 2015
    • Petteri Aimonen's avatar
      Fix bug in fuzzstub. · be9c9bb5
      Petteri Aimonen authored
      The fread call always returned a message length of 1 byte,
      making the fuzz stub used for external fuzzers useless. The
      normal fuzztest.c was unaffected.
      
      Bug found using afl-fuzz.
      be9c9bb5
Loading