Commit Graph

  • 384e686fe6 Do not generate has_ fields for callback fields. Petteri Aimonen 2013-04-02 20:01:31 +03:00
  • 214b0eae8a Change the callback function to use void**. Petteri Aimonen 2013-04-02 19:55:21 +03:00
  • 6f3740f74e Fix warning on clang. Petteri Aimonen 2013-03-13 15:34:12 +02:00
  • 1396dce2ae Add support for packed structures on IAR and MSVC. Petteri Aimonen 2013-03-13 15:22:00 +02:00
  • 6468f23d23 Make the generator options accept a file name in addition to format string. Petteri Aimonen 2013-03-09 23:03:09 +02:00
  • 03e5393072 Add PB_SYSTEM_HEADER compile time option. Petteri Aimonen 2013-03-09 14:56:34 +02:00
  • d580b225e8 Rename pb_field_iterator_t field 'current' to 'pos'. Petteri Aimonen 2013-03-09 14:52:38 +02:00
  • 0352647118 Implement error message support for the encoder side. Petteri Aimonen 2013-03-09 14:49:15 +02:00
  • 9b6641ac64 alltypes.proto no longer needs to include nanopb.proto Petteri Aimonen 2013-03-09 14:45:41 +02:00
  • 5f3bf35e01 Switch alltypes.proto to use the new .options file mechanism. Petteri Aimonen 2013-03-09 14:23:44 +02:00
  • 6f8dbc73eb Add simple support for separate options file. Petteri Aimonen 2013-03-09 14:21:21 +02:00
  • e1b8a555f3 Fix additional bug with empty message types. Petteri Aimonen 2013-03-09 13:12:09 +02:00
  • 60109c0be1 Add option to run the tests with mudflap to detect pointer errors. Petteri Aimonen 2013-03-09 13:09:14 +02:00
  • 96d4016838 Improve the fuzztest. Petteri Aimonen 2013-03-09 12:51:47 +02:00
  • a9c88f5570 Fix error in backwards compatibility testcase Petteri Aimonen 2013-03-09 12:43:35 +02:00
  • d2e3c1ad93 Fix bug with decoding empty message types. Add test for the same. Petteri Aimonen 2013-03-09 12:35:07 +02:00
  • 5522e02133 Add a dummy field if struct would otherwise be empty. Petteri Aimonen 2013-03-06 18:02:57 +02:00
  • 64bf72d73d Add generator option to configure #include directives. Petteri Aimonen 2013-03-04 19:27:42 +02:00
  • 104710b26c Setting version to 0.2.1-dev Petteri Aimonen 2013-03-02 16:35:17 +02:00
  • c8e0732e6b Publishing nanopb-0.2.0 nanopb-0.2.0 Petteri Aimonen 2013-03-02 16:32:54 +02:00
  • 86ae2541e6 Update changelog Petteri Aimonen 2013-03-02 16:32:15 +02:00
  • f8a143fdfe Update documentation Petteri Aimonen 2013-03-02 16:27:31 +02:00
  • 0e3053894f Add --extension option to generator. Petteri Aimonen 2013-02-28 16:42:34 +02:00
  • 57e81ca73b Added CMake file for use in projects linking against nanopb. Pavel Ilin 2013-01-31 19:01:09 +01:00
  • 5442e690f6 Merge branch 'dev-0.2' Petteri Aimonen 2013-02-21 19:38:56 +02:00
  • 80a2d33fa9 Move STATIC_ASSERTs to .pb.c file. dev-0.2 Petteri Aimonen 2013-02-21 19:35:20 +02:00
  • 41f98343c8 Separate PB_HTYPE to PB_ATYPE and PB_HTYPE. Petteri Aimonen 2013-02-20 22:55:59 +02:00
  • 69085d9387 Rename PB_HTYPE_ARRAY -> PB_HTYPE_REPEATED. Petteri Aimonen 2013-02-20 21:58:18 +02:00
  • 258ba8335d Reformat generated .pb.c files using macros. Petteri Aimonen 2013-02-17 00:10:47 +02:00
  • 5b536d40a1 Setting version to 0.1.9.1-dev Petteri Aimonen 2013-02-13 21:13:35 +02:00
  • 4cc3372b03 Publishing nanopb-0.1.9 nanopb-0.1.9 Petteri Aimonen 2013-02-13 21:12:09 +02:00
  • 9d3d7b5730 Add gitignore. Petteri Aimonen 2013-02-11 22:03:14 +02:00
  • ec4a7a0cce Replace pb_type_t enum with #defines. Petteri Aimonen 2013-02-11 21:55:55 +02:00
  • c1a355b23e Set version to 0.2.0-dev Petteri Aimonen 2013-02-11 21:54:24 +02:00
  • 22e0a78e5e Update changelog Petteri Aimonen 2013-02-07 18:06:42 +02:00
  • c1bd1a6ad3 Fix error message bugs with packed arrays. Petteri Aimonen 2013-02-07 17:56:52 +02:00
  • e7bf063abc Add check for sizeof(double) == 8. Petteri Aimonen 2013-02-07 17:48:50 +02:00
  • 47b10ec0ab Sanitize filenames before putting them in #ifndef. Petteri Aimonen 2013-02-07 17:40:17 +02:00
  • 4b7ddabbcf Fix compiler warning on MSVC (issue #57) Petteri Aimonen 2013-02-07 17:19:53 +02:00
  • c3729599b0 Use unsigned datatypes where appropriate. Petteri Aimonen 2013-02-06 22:18:52 +02:00
  • 4f379364b3 Improve the pb_decode_varint implementations. Petteri Aimonen 2013-02-06 22:11:02 +02:00
  • d23939d688 Avoid unnecessary looping in required fields check. Petteri Aimonen 2013-02-06 21:44:40 +02:00
  • 4ba6a3027d Add compile-time option PB_BUFFER_ONLY. Petteri Aimonen 2013-02-06 20:54:25 +02:00
  • 39b8a5e2bb Make pb_decode_varint32 a separate implementation. Petteri Aimonen 2013-02-05 22:39:32 +02:00
  • c372ebc665 Performance improvement: replace memcpy with loop. Petteri Aimonen 2013-02-05 22:06:36 +02:00
  • 38ced18639 Add Java package name to nanopb.proto. Petteri Aimonen 2013-02-05 11:47:37 +02:00
  • e4b55179d1 Add an example of handling doubles on AVR platform. Petteri Aimonen 2013-01-29 22:10:37 +02:00
  • 2392d25574 Fix misleading comment (current generator sets LTYPE always). Petteri Aimonen 2013-01-21 21:18:38 +02:00
  • eab4151a99 Oops, typoed #ifdef; again fixing previous commit. Petteri Aimonen 2013-01-16 16:32:48 +02:00
  • 8e840cc81a Put previous commit (issue 52) inside #ifndef Petteri Aimonen 2013-01-16 16:31:45 +02:00
  • 88eba4bc27 Fix bug with error messages. Petteri Aimonen 2013-01-16 16:28:51 +02:00
  • d32d322658 Add field type FT_IGNORE to generator. Petteri Aimonen 2013-01-14 17:30:49 +02:00
  • b9baec6b4c Add a test for the backwards compatibility of generated files. Petteri Aimonen 2013-01-13 18:44:15 +02:00
  • d2c1604d6d Add generator option for packed structs. Petteri Aimonen 2013-01-10 17:32:27 +02:00
  • 93ffe14a0a Cleanup: get rid of unnecessary spaces Petteri Aimonen 2013-01-10 17:31:33 +02:00
  • bb5dc04584 Setting version to 0.1.9-dev Petteri Aimonen 2012-12-13 21:32:37 +02:00
  • 09ec60cadf Publishing nanopb-0.1.8 nanopb-0.1.8 Petteri Aimonen 2012-12-13 21:29:57 +02:00
  • 871e5be9dd Fix small error in field callback documentation. Petteri Aimonen 2012-12-06 11:13:53 +02:00
  • 068de05c51 Complete initialization of pb_istream_t. Jens Steinhauser 2012-11-27 00:19:55 +01:00
  • 1f8fb1f1ed Use TESTS variable to define dependencies for run_unittests Steffen Siering 2012-11-11 23:02:26 +00:00
  • 434dcbb2ee Select compilation options based on $(CC) in tests/Makefile. Petteri Aimonen 2012-11-16 09:51:23 +02:00
  • 59788e2aab Rename test_compiles.c to test_multiple_files.c Petteri Aimonen 2012-11-16 09:33:11 +02:00
  • cc29958d34 Fix STATIC_ASSERT macro when using multiple .proto files. Steffen Siering 2012-11-11 22:48:21 +00:00
  • 0abb764b18 Fix naming of nested Enums with short names Petteri Aimonen 2012-11-14 00:43:51 +02:00
  • 02ecee2de8 Fix naming of enums when long_names=false. Petteri Aimonen 2012-11-14 00:20:44 +02:00
  • 332a9ee95c Fix changelog Petteri Aimonen 2012-11-11 11:20:34 +02:00
  • fc6f56b2bd Setting version to 0.1.8-dev Petteri Aimonen 2012-11-11 11:19:17 +02:00
  • 92bb37b074 Publishing nanopb-0.1.7 nanopb-0.1.7 Petteri Aimonen 2012-11-11 11:16:01 +02:00
  • ad9a885644 Document new generator options Petteri Aimonen 2012-10-29 19:33:33 +02:00
  • 08391f35ee Add nanopb version number to generated files. Petteri Aimonen 2012-10-29 19:15:34 +02:00
  • 3aaa4ad8c2 Add extern "C" to header files. Petteri Aimonen 2012-10-29 19:03:19 +02:00
  • db1eefc24b Add option to use short names for enum values. Petteri Aimonen 2012-10-29 18:55:49 +02:00
  • 0ee4bb96b1 Allow defining field type in .proto. Petteri Aimonen 2012-10-29 18:34:24 +02:00
  • 28b0136ea4 Improve .proto options parsing. Petteri Aimonen 2012-10-29 18:20:15 +02:00
  • 9e0ee92f0a Use optparse in nanopb_generator.py Petteri Aimonen 2012-10-29 17:22:02 +02:00
  • c3fa362653 Give names to generated structures to allow forward declaration. Petteri Aimonen 2012-10-29 16:56:45 +02:00
  • bffd3a9acc Improve the person_with_extra_field test. Petteri Aimonen 2012-10-21 21:31:20 +03:00
  • dcab39a41c Remove the "buf = NULL" => skip requirement from pb_istream_t callbacks. Petteri Aimonen 2012-10-18 19:45:28 +03:00
  • 900c8dd125 Add tests for negative values in the alltypes testcase. Petteri Aimonen 2012-10-14 12:27:08 +03:00
  • 3f563792ad Add buffer size check in test_decode1.c example. Petteri Aimonen 2012-09-18 16:48:43 +03:00
  • b214de4e1e Enable -Wconversion for core and fix the warnings. Petteri Aimonen 2012-09-03 17:35:14 +03:00
  • be78e3b4d0 Fix build warnings on MS compilers dch 2012-09-02 21:24:19 +01:00
  • 11e0918b5e Created a CHANGELOG file for easy reference. nanopb-0.1.6 Petteri Aimonen 2012-09-02 20:49:08 +03:00
  • 07d44cf632 Clean up one (uint64_t) cast. Petteri Aimonen 2012-09-02 20:14:22 +03:00
  • f187aad63d Fix -Wextra warning in generated .pb.c files. Petteri Aimonen 2012-09-02 19:54:35 +03:00
  • a06dba6e49 Fix warnings with -Wcast-qual. Add test for C++ compile. Petteri Aimonen 2012-08-26 15:21:20 +03:00
  • 160f02e4d0 Add pb_decode_noinit and use it from pb_dec_submessage. Petteri Aimonen 2012-08-26 09:56:11 +03:00
  • a7a6cdad88 Added alltypes-testcases for optional fields and default values. Petteri Aimonen 2012-08-26 10:57:51 +03:00
  • 1463e687e3 Revert "Add pb_decode_noinit and use it from pb_dec_submessage." Petteri Aimonen 2012-08-26 10:05:46 +03:00
  • f1d7640fe1 Add pb_decode_noinit and use it from pb_dec_submessage. Petteri Aimonen 2012-08-26 09:56:11 +03:00
  • 440da6959f Add note that stream callbacks must read the whole requested length. Petteri Aimonen 2012-08-24 21:32:42 +03:00
  • 0fb5e5e068 Implement error messages in the decoder side. Petteri Aimonen 2012-08-24 21:22:20 +03:00
  • ea57f74741 Document pb_close_string_substream. Petteri Aimonen 2012-08-24 20:51:29 +03:00
  • 9383f305dc Revert "Change the substream implementation in pb_decode." Petteri Aimonen 2012-08-24 20:43:21 +03:00
  • 2941e90e04 Reorganize the field decoder interface. Petteri Aimonen 2012-08-24 20:23:25 +03:00
  • dc2da0edc5 Change the substream implementation in pb_decode. Petteri Aimonen 2012-08-24 19:35:17 +03:00
  • 86257a2a70 Fix a confusing statement in a comment. Petteri Aimonen 2012-08-24 19:25:29 +03:00
  • 07f24f9b70 Fix casting issues Stan Hu 2012-08-16 11:29:08 -07:00
  • 8d5086f052 Declare warn_unused_result only on GCC >= 3.4.0. Thanks to cea.max.simoes for bug report & fix. Petteri Aimonen 2012-08-09 16:15:23 +03:00
  • 1aa61f108a Fix signedness warning in example_unions. nanopb-0.1.5 Petteri Aimonen 2012-08-04 14:34:19 +03:00