Commit Graph

  • b582bc9bf6 Fix bug in decoder with packed arrays. Petteri Aimonen 2012-07-31 19:12:57 +03:00
  • 5703ad0c55 Extend 'alltypes' testcase to cover repeated fields. Petteri Aimonen 2012-07-31 19:10:33 +03:00
  • 0a5b6852ec Additional unsigned vs. signed fix for tag Petteri Aimonen 2012-07-19 09:05:36 +03:00
  • 8524de39ce Fix an unsigned vs. signed warning on some compiler. Petteri Aimonen 2012-07-18 21:21:07 +03:00
  • 10b5da12dc Fixed a few compiler warnings, added check. Petteri Aimonen 2012-07-18 21:09:13 +03:00
  • d8bddabb83 Fix bug with .proto without messages (again), and add a test case for it. nanopb-0.1.4 Petteri Aimonen 2012-07-05 20:02:06 +03:00
  • 01a1556898 Apparently some compilers don't want to automatically cast size_t to uint64_t. Petteri Aimonen 2012-07-05 18:27:07 +03:00
  • efef38cf78 Fix some typos in __BIG_ENDIAN__ code Petteri Aimonen 2012-07-05 18:24:11 +03:00
  • 72cca8d783 Replace #warning with the standard #error. Petteri Aimonen 2012-07-05 18:19:38 +03:00
  • 7c5bb6541a Cast enum vaules to integers and cast them back where appropraite to prevent mixed enumeration type compiler warnings Stan Hu 2012-07-02 14:00:45 -07:00
  • 9b1e1b440a Replace PB_MANY_FIELDS with PB_FIELD_16BIT and PB_FIELD_32BIT. Petteri Aimonen 2012-07-01 10:15:37 +03:00
  • 78086cc27d Add PB_MANY_FIELDS option for supporting fields > 255. Petteri Aimonen 2012-06-30 19:28:49 +03:00
  • 67add3259a Warn if PB_MAX_REQUIRED_FIELDS is not large enough. Petteri Aimonen 2012-06-30 18:23:18 +03:00
  • 95eb4a5499 Improve the detection of missing required fields. Petteri Aimonen 2012-06-30 18:10:08 +03:00
  • 7bcf7ef579 Fixed formatting in docs Petteri Aimonen 2012-06-25 22:17:13 +03:00
  • 99375a132f Documented NANOPB_INTERNALS compilation option Petteri Aimonen 2012-06-25 22:08:05 +03:00
  • c07e576de8 Note about __BIG_ENDIAN__ compilation option Petteri Aimonen 2012-06-25 21:45:40 +03:00
  • 3a919ddc5e Fix error when .proto contains no Messages (e.g. just enums). Petteri Aimonen 2012-06-20 21:31:23 +03:00
  • 0f1d5cca59 Added example on how to handle unions. Petteri Aimonen 2012-06-16 14:08:40 +03:00
  • e18352d506 Added new functions to public interface in pb_decode.h. Petteri Aimonen 2012-06-16 14:07:37 +03:00
  • 7e1059628c Fix non-constant initializer errors with some compilers. Petteri Aimonen 2012-06-13 21:43:40 +03:00
  • 5af2c97ecd Add descriptor.proto into the #include exclusion list nanopb-0.1.3 Petteri Aimonen 2012-06-12 17:51:08 +03:00
  • feddc0115c Merge branch 'master' of https://code.google.com/p/nanopb Petteri Aimonen 2012-05-19 21:25:47 +03:00
  • f9501ca185 Add better error messages in the generator when libraries cannot be imported. Fixes issue #5. Petteri Aimonen 2012-05-19 21:25:10 +03:00
  • b943290886 Fix 64-bitness warnings in the example. Petteri Aimonen 2012-05-19 21:15:52 +03:00
  • d1ca88d20e Fixing compiler warnings, mostly related to unused parameters. Petteri Aimonen 2012-04-18 20:15:36 +03:00
  • 9fbe9a5de3 Refactoring the field encoder interface. Petteri Aimonen 2012-03-01 13:46:52 +02:00
  • 6d010fb7c4 Fixed pb_get_message_size code_reduction_dev Daniel Kan 2012-02-27 14:46:38 -08:00
  • 34aa2031c4 Code reduction optimization by sharing common field descriptor information for numeric field types Daniel Kan 2012-02-24 13:46:36 -08:00
  • 0cdc623050 Modified nanopb_generator.py to generate includes for other .proto files. Implementation was suggested by extremeblue99. Fixes issue 4. nanopb-0.1.2 Petteri Aimonen 2012-02-15 17:34:48 +02:00
  • f6b08404fa Fixed nanopb_generator.py to read the input file in binary mode. Petteri Aimonen 2012-01-30 10:36:17 +02:00
  • b36a1a259a Improved documentation on field decoders. Petteri Aimonen 2012-01-23 18:13:26 +02:00
  • c2e0b9ed5d Added note in docs that this is the dev branch. dynamic_alloc_dev Petteri Aimonen 2012-01-12 19:23:30 +02:00
  • 113bd7ee87 Fixed issue 1 reported by Erik Rosen: The size of non-callback bytes-fields was miscalculated, which caused all following fields in a message to contain garbage. nanopb-0.1.1 Petteri Aimonen 2012-01-12 19:08:05 +02:00
  • 0f6b615ae3 Added an encode/decode test for 'required' fields of all types. Petteri Aimonen 2012-01-12 19:06:33 +02:00
  • a1adf39805 Fixed a bug in the generator that caused a compiler error on sfixed32 and sfixed64 fields. Petteri Aimonen 2012-01-12 18:10:12 +02:00
  • 592d4213fd Added mdpoole to LICENSE Petteri Aimonen 2012-01-06 19:16:44 +02:00
  • 9a0a930a18 Merge branch 'master' into dynamic_alloc_dev Petteri Aimonen 2012-01-06 19:16:28 +02:00
  • b519edba9d Linewrapping in license nanopb-0.1.0 Petteri Aimonen 2012-01-06 19:04:49 +02:00
  • a2673f24fa Merge branch 'master' into dynamic_alloc_dev Petteri Aimonen 2012-01-05 22:10:29 +02:00
  • accd93be8d Add an encoder optimized for in-memory buffers. Michael Poole 2011-12-21 04:36:10 +00:00
  • 3979f9137f Unify the non-MALLOC_HEADER tests for PB_POINTER fields. Michael Poole 2011-12-20 11:47:59 +00:00
  • ba93b65e9f Set the defaults properly for newly allocated submessages. Michael Poole 2011-12-20 03:54:57 +00:00
  • f7c8dd81d4 Make field decoders return false for unsupported pointer fields. Michael Poole 2011-12-20 03:38:48 +00:00
  • c66c6b43c4 Support dynamic allocation for string, bytes and message fields. Michael Poole 2011-12-20 03:30:52 +00:00
  • 8e5337e9ef Merge the generated has_<name> fields into a single one. Michael Poole 2011-11-13 18:10:19 +00:00
  • 43b8e20744 Create a message descriptor type. Michael Poole 2011-11-13 18:10:11 +00:00
  • dcf43a6416 Convert pb_type_t to uint8_t. Michael Poole 2011-11-13 18:10:01 +00:00
  • 28aa0ce096 Added logo for project :) Petteri Aimonen 2012-01-05 18:35:12 +00:00
  • b5fb97f6f5 Make the fuzztest runnable again Petteri Aimonen 2011-12-30 09:05:01 +00:00
  • a3f5e4d81f Expanding the tests to better cover decoding from memory buffer. Petteri Aimonen 2011-12-30 08:57:27 +00:00
  • 1506450b11 Fixed a bug related to submessage encoding into memory buffer. Stream state was not copied back from substream in pb_enc_submessage, which caused garbage output if the stream callback modified the state. Petteri Aimonen 2011-12-30 08:43:50 +00:00
  • ad7a0e2111 Merged 0005-Handle-endianness-correctly.patch by Matt Kern. On big endian machines, pb_dec_fixed32 and pb_dec_fixed64 were incorrectly overwriting the result value even if reading failed. Petteri Aimonen 2011-11-30 15:08:32 +00:00
  • 2a80ff2bd5 Merged 0004-Added-missing-trailing-newlines.patch by Matt Kern. Just adding newlines at the end of files to satisfy old GCC versions. Petteri Aimonen 2011-11-30 15:03:23 +00:00
  • e66675a25d Merged 0003-Fixed-format-specifiers.patch by Matt Kern. Fixes cross-platform issues with the length modifier in printf specifiers, most importantly %d -> %ld. Petteri Aimonen 2011-11-30 15:01:59 +00:00
  • a77ab47c29 Added Makefile for generating nanopb_pb2.py. I still left the precompiled version in place, as it "often works" :) Petteri Aimonen 2011-11-30 14:59:25 +00:00
  • 13b6988b64 Fix some compiler warnings in strict C89 mode Contributed by Michael Poole. Petteri Aimonen 2011-11-10 16:19:55 +00:00
  • 85e0afd894 Some additions to documentation Petteri Aimonen 2011-11-04 07:22:05 +00:00
  • c7e2d6cc2f Documentation outdated phrase Petteri Aimonen 2011-09-18 16:10:08 +00:00
  • d96e9575d4 Added comments to the simplest decode/encode examples. Petteri Aimonen 2011-09-18 16:04:45 +00:00
  • b2a696795e Added README Petteri Aimonen 2011-09-14 10:36:04 +00:00
  • fcfc99f766 Fixed a bunch of bugs related to callback fields. Petteri Aimonen 2011-09-13 16:14:08 +00:00
  • d4abb63c05 Tests for callback fields Petteri Aimonen 2011-09-12 18:53:33 +00:00
  • 35814517ad Python 2.6 compatibility for the generator Petteri Aimonen 2011-09-01 08:30:48 +00:00
  • 1604000714 Cyclic messages not supported - thanks to Josh for pointing this out. Petteri Aimonen 2011-08-24 19:03:28 +00:00
  • fab52deda9 Make fuzz test runnable again :) Petteri Aimonen 2011-08-24 18:23:05 +00:00
  • 9af96cd669 Generator bugfixes Petteri Aimonen 2011-08-24 13:52:08 +00:00
  • 646e3c4944 documentation Petteri Aimonen 2011-08-24 12:57:16 +00:00
  • 4c76c9c398 makefile fix Petteri Aimonen 2011-08-24 12:14:44 +00:00
  • 9cb63dd266 wrong file name Petteri Aimonen 2011-08-24 12:13:24 +00:00
  • a353417021 More unittests Petteri Aimonen 2011-08-23 18:50:09 +00:00
  • 64ac18c884 Changed autogenerated file naming from foo.c to foo.pb.c Petteri Aimonen 2011-08-23 16:16:33 +00:00
  • 9966a8c9b6 more unittests Petteri Aimonen 2011-08-23 15:57:47 +00:00
  • 7780da38e8 license Petteri Aimonen 2011-08-23 15:57:40 +00:00
  • 5e27a83f9c Allocated extension number Petteri Aimonen 2011-08-23 15:57:20 +00:00
  • 8b635924ba check return values Petteri Aimonen 2011-08-23 13:33:43 +00:00
  • 5490163200 More unittests Petteri Aimonen 2011-08-23 09:59:18 +00:00
  • 5a9f85b876 unittests, change to PB_LTYPE_BYTES data size Petteri Aimonen 2011-08-22 18:57:23 +00:00
  • 494fbd91e4 example client Petteri Aimonen 2011-08-22 15:22:41 +00:00
  • 7f53c3f748 Example Petteri Aimonen 2011-08-17 19:03:06 +00:00
  • 2cefaeaf61 Docs Petteri Aimonen 2011-08-16 17:28:59 +00:00
  • 842d52633d More documentation, small improvements Petteri Aimonen 2011-08-14 20:11:05 +00:00
  • 6dfba365b0 Documenting and improving stream behaviour Petteri Aimonen 2011-08-11 19:22:36 +00:00
  • 09f92bafa5 Started writing documentation Petteri Aimonen 2011-08-10 20:08:06 +00:00
  • 0c5bc4caf9 Unittests for encode Petteri Aimonen 2011-08-10 17:54:15 +00:00
  • a8d0172507 Encoder Petteri Aimonen 2011-08-04 16:49:32 +00:00
  • 3959290bc7 First version of header generator Petteri Aimonen 2011-07-31 12:55:09 +00:00
  • f8364310d3 unittests (some) Petteri Aimonen 2011-07-30 09:59:08 +00:00
  • d7863b7424 iter Petteri Aimonen 2011-07-28 15:38:05 +00:00
  • b9ca72e6af git-svn-id: https://svn.kapsi.fi/jpa/nanopb@947 e3a754e5-d11d-0410-8d38-ebb782a927b9 Petteri Aimonen 2011-07-28 14:54:03 +00:00
  • d9238da690 bugfix Petteri Aimonen 2011-07-27 20:06:17 +00:00
  • 42e5fcc0be git-svn-id: https://svn.kapsi.fi/jpa/nanopb@945 e3a754e5-d11d-0410-8d38-ebb782a927b9 Petteri Aimonen 2011-07-27 20:01:50 +00:00
  • ead3b734d8 Making code ansi-compatible Petteri Aimonen 2011-07-27 19:57:43 +00:00
  • 84304b343a Improvements, array support Petteri Aimonen 2011-07-27 19:22:11 +00:00
  • 14bbe22997 First version of decoding Petteri Aimonen 2011-07-25 20:42:48 +00:00