Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-01-16 | Fix bug with error messages. | Petteri Aimonen | 1 | -0/+1 | |
Update issue 52 Status: FixedInGit | |||||
2013-01-14 | Add field type FT_IGNORE to generator. | Petteri Aimonen | 4 | -3/+24 | |
This allows ignoring fields that are unnecessary or too large for an embedded system using nanopb, while allowing them to remain in the .proto for other platforms. Update issue 51 Status: FixedInGit | |||||
2013-01-13 | Add a test for the backwards compatibility of generated files. | Petteri Aimonen | 5 | -1/+814 | |
It is not necessary to maintain full compatibility of generated files for all of eternity, but this test will warn us if there is a need to regenerate the files. | |||||
2013-01-10 | Add generator option for packed structs. | Petteri Aimonen | 5 | -6/+31 | |
Usage is: message Foo { option (nanopb_msgopt).packed_struct = true; ... } Valid also in file scope. Update issue 49 Status: FixedInGit | |||||
2013-01-10 | Cleanup: get rid of unnecessary spaces | Petteri Aimonen | 1 | -6/+6 | |
2012-12-13 | Setting version to 0.1.9-dev | Petteri Aimonen | 2 | -2/+2 | |
2012-12-13 | Publishing nanopb-0.1.8 | Petteri Aimonen | 3 | -2/+8 | |
2012-12-06 | Fix small error in field callback documentation. | Petteri Aimonen | 1 | -1/+1 | |
Update issue 44 Status: FixedInGit | |||||
2012-11-27 | Complete initialization of pb_istream_t. | Jens Steinhauser | 1 | -0/+3 | |
Because PB_RETURN_ERROR checks if the 'errmsg' member is NULL before assigning to it, error messages would get lost. | |||||
2012-11-16 | Use TESTS variable to define dependencies for run_unittests | Steffen Siering | 1 | -6/+11 | |
2012-11-16 | Select compilation options based on $(CC) in tests/Makefile. | Petteri Aimonen | 1 | -3/+11 | |
Makes 'make CC=clang' work. Based on patch submitted by Steffen Siering. Update issue 40: Status: FixedInGit | |||||
2012-11-16 | Rename test_compiles.c to test_multiple_files.c | Petteri Aimonen | 3 | -4/+6 | |
2012-11-16 | Fix STATIC_ASSERT macro when using multiple .proto files. | Steffen Siering | 5 | -5/+36 | |
The __COUNTER__ macro (used for generating unique names) is at least supported by gcc, clang and Visual Studio. With this change test_compiles.c is compilable, since no more typedefs are redefined. Compilers/Preprocessors not supporting __COUNTER__ error's are still possible which are hopfully handled by the usage of __LINE__ in most sittuations. Added unit test for the problem. | |||||
2012-11-14 | Fix naming of nested Enums with short names | Petteri Aimonen | 3 | -3/+16 | |
2012-11-14 | Fix naming of enums when long_names=false. | Petteri Aimonen | 4 | -5/+26 | |
Modify test case to check that options.pb.o compiles. Update issue 42 Status: FixedInGit Update issue 43 Status: FixedInGit | |||||
2012-11-11 | Fix changelog | Petteri Aimonen | 1 | -1/+1 | |
2012-11-11 | Setting version to 0.1.8-dev | Petteri Aimonen | 2 | -2/+2 | |
2012-11-11 | Publishing nanopb-0.1.7 | Petteri Aimonen | 2 | -2/+2 | |
2012-10-29 | Document new generator options | Petteri Aimonen | 2 | -0/+24 | |
2012-10-29 | Add nanopb version number to generated files. | Petteri Aimonen | 3 | -1/+16 | |
tools/set_version.sh is used to update the values. Update issue 36 Status: FixedInGit | |||||
2012-10-29 | Add extern "C" to header files. | Petteri Aimonen | 3 | -1/+23 | |
Update issue 35 Status: FixedInGit | |||||
2012-10-29 | Add option to use short names for enum values. | Petteri Aimonen | 6 | -14/+58 | |
Update issue 38 Status: FixedInGit | |||||
2012-10-29 | Allow defining field type in .proto. | Petteri Aimonen | 5 | -8/+68 | |
Update issue 30 Status: FixedInGit | |||||
2012-10-29 | Improve .proto options parsing. | Petteri Aimonen | 6 | -22/+129 | |
Options can now be defined on command line, file, message or in field scope. Update issue 12 Status: Started | |||||
2012-10-29 | Use optparse in nanopb_generator.py | Petteri Aimonen | 1 | -31/+85 | |
2012-10-29 | Give names to generated structures to allow forward declaration. | Petteri Aimonen | 2 | -4/+6 | |
Update issue 39 Status: FixedInGit | |||||
2012-10-21 | Improve the person_with_extra_field test. | Petteri Aimonen | 3 | -4/+1 | |
Added a field after the extra field to verify it's also ok. | |||||
2012-10-18 | Remove the "buf = NULL" => skip requirement from pb_istream_t callbacks. | Petteri Aimonen | 8 | -33/+35 | |
Rationale: it's easy to implement the callback wrong. Doing so introduces io errors when unknown fields are present in the input. If code is not tested with unknown fields, these bugs can remain hidden for long time. Added a special case for the memory buffer stream, where it gives a small speed benefit. Added testcase for skipping fields with test_decode2 implementation. Update issue 37 Status: FixedInGit | |||||
2012-10-14 | Add tests for negative values in the alltypes testcase. | Petteri Aimonen | 2 | -24/+24 | |
2012-09-18 | Add buffer size check in test_decode1.c example. | Petteri Aimonen | 1 | -0/+6 | |
This check gives a better error message in case you test stuff and have a message longer than 512 bytes. Update issue 34 Status: FixedInGit | |||||
2012-09-03 | Enable -Wconversion for core and fix the warnings. | Petteri Aimonen | 5 | -14/+17 | |
This should help avoid issue 33 in the future. | |||||
2012-09-03 | Fix build warnings on MS compilers | dch | 1 | -4/+4 | |
Update issue 33 Status: FixedInGit | |||||
2012-09-02 | Created a CHANGELOG file for easy reference. | Petteri Aimonen | 2 | -0/+39 | |
2012-09-02 | Clean up one (uint64_t) cast. | Petteri Aimonen | 1 | -2/+2 | |
2012-09-02 | Fix -Wextra warning in generated .pb.c files. | Petteri Aimonen | 2 | -1/+4 | |
Compile the generated files with the same extra-strict settings as the core, in order to detect problems in tests. Update issue 32 Status: FixedInGit | |||||
2012-08-26 | Fix warnings with -Wcast-qual. Add test for C++ compile. | Petteri Aimonen | 3 | -17/+30 | |
Update issue 27 Status: FixedInGit | |||||
2012-08-26 | Add pb_decode_noinit and use it from pb_dec_submessage. | Petteri Aimonen | 3 | -4/+24 | |
This avoids double initialization when decoding nested submessages. Fixes an issue with submessage arrays that was present in previous version of this patch. Update issue 28 Status: FixedInGit | |||||
2012-08-26 | Added alltypes-testcases for optional fields and default values. | Petteri Aimonen | 4 | -12/+180 | |
2012-08-26 | Revert "Add pb_decode_noinit and use it from pb_dec_submessage." | Petteri Aimonen | 3 | -24/+4 | |
The patch breaks default values inside submessage arrays (I think). Have to add test cases and check back. This reverts commit f1d7640fe1be0f150f604c72108ea516222c2505. | |||||
2012-08-26 | Add pb_decode_noinit and use it from pb_dec_submessage. | Petteri Aimonen | 3 | -4/+24 | |
This avoids double initialization when decoding nested submessages. Update issue 28 Status: FixedInGit | |||||
2012-08-24 | Add note that stream callbacks must read the whole requested length. | Petteri Aimonen | 1 | -0/+1 | |
Fixes issue #22. | |||||
2012-08-24 | Implement error messages in the decoder side. | Petteri Aimonen | 12 | -32/+52 | |
Update issue 7 Status: Started | |||||
2012-08-24 | Document pb_close_string_substream. | Petteri Aimonen | 1 | -1/+13 | |
2012-08-24 | Revert "Change the substream implementation in pb_decode." | Petteri Aimonen | 3 | -14/+29 | |
This reverts commit dc2da0edc568b29361479fb7405c96b1a13442cf. Add pb_close_string_substream() for copying back the state. This makes adding error messages easier in the future, as also them need to be propagated back from the substream. | |||||
2012-08-24 | Reorganize the field decoder interface. | Petteri Aimonen | 6 | -152/+150 | |
This makes the field decoding functions more intuitive to use. The old interface is still present if you specify NANOPB_INTERNALS. Update issue 2 Status: FixedInGit | |||||
2012-08-24 | Change the substream implementation in pb_decode. | Petteri Aimonen | 2 | -20/+13 | |
This makes it unnecessary to copy back the state, and also relaxes the requirements on callbacks (bytes_left will always be valid). It decreases code size by a few bytes, but may be just slightly slower. | |||||
2012-08-24 | Fix a confusing statement in a comment. | Petteri Aimonen | 1 | -1/+1 | |
2012-08-16 | Fix casting issues | Stan Hu | 1 | -2/+2 | |
2012-08-09 | Declare warn_unused_result only on GCC >= 3.4.0. | Petteri Aimonen | 2 | -10/+10 | |
Thanks to cea.max.simoes for bug report & fix. Update issue 25 Status: FixedInGit | |||||
2012-08-04 | Fix signedness warning in example_unions. | Petteri Aimonen | 1 | -1/+1 | |