Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-11-13 | Make tests build in a separate folder, add to gitignore | Petteri Aimonen | 16 | -44/+49 | |
2013-11-02 | Generate #define tags for extension fields also. | Petteri Aimonen | 1 | -0/+4 | |
Update issue 93 Status: FixedInGit | |||||
2013-10-29 | Remove the NANOPB_INTERNALS functions from public API. | Petteri Aimonen | 5 | -6/+8 | |
These have been deprecated since nanopb-0.1.6 (some since 0.1.3). Equivalent functions with better interface are available in the API. Update issue 91 Status: FixedInGit | |||||
2013-10-24 | Detect invalid sizes when encoding bytes fields. | Petteri Aimonen | 2 | -2/+20 | |
2013-10-23 | Generate message size #defines also for messages defined in multiple files. | Petteri Aimonen | 4 | -0/+55 | |
Add testcase for the same. | |||||
2013-10-20 | Check array max size when encoding. | Petteri Aimonen | 1 | -0/+14 | |
Update issue 90 Status: FixedInGit | |||||
2013-09-26 | Add #defines for the maximum encoded message size. | Petteri Aimonen | 4 | -3/+16 | |
Update issue 89 Status: FixedInGit | |||||
2013-09-11 | Expand extra_fields test to cover field skipping in case of streams. | Petteri Aimonen | 2 | -0/+4 | |
2013-09-11 | Disable warning about uint64_t (long long) | Petteri Aimonen | 1 | -1/+4 | |
2013-09-11 | Fix build error when path contains spaces | Petteri Aimonen | 1 | -3/+6 | |
2013-09-11 | Add tests for different compilation options | Petteri Aimonen | 9 | -6/+286 | |
2013-09-11 | Windows build fixes | Petteri Aimonen | 4 | -6/+13 | |
2013-09-11 | Make all the tests ANSI C compatible. | Petteri Aimonen | 10 | -54/+100 | |
2013-09-10 | Move the rest of the tests to scons | Petteri Aimonen | 17 | -14/+151 | |
2013-09-10 | Compiler options for GCC, clang and tcc | Petteri Aimonen | 2 | -9/+65 | |
2013-09-10 | Build fixes for Windows/Visual C++ | Petteri Aimonen | 12 | -49/+118 | |
2013-09-10 | Add an example pb_syshdr.h file for platforms without C99. | Petteri Aimonen | 1 | -0/+7 | |
This allows building the tests easily on Visual C++ in C mode. Also add checks to pb.h that the defined integer types are of the proper sizes. This may prevent some difficult to debug problems later.. | |||||
2013-09-10 | Convert more test cases to scons | Petteri Aimonen | 4 | -66/+124 | |
2013-09-08 | Start moving the tests into subfolders. Transition to SCons for build system ↵ | Petteri Aimonen | 42 | -143/+131 | |
for the tests. Only a few tests updated so far. Have to include all the rest before merging to mainline. Update issue 63 Status: Started | |||||
2013-09-08 | Handle unsupported extension field types more gracefully. | Petteri Aimonen | 1 | -0/+2 | |
Previously the generator would stop with NotImplementedException as soon as a required or repeated extension field is found. New behaviour is to just ignore the unsupported field and note that in a comment in the generated file. Furthermore, allow skipping of extension fields using the generator option (nanopb).type = FT_IGNORE. Update issue 83 Status: FixedInGit | |||||
2013-07-22 | Finish the testcase for extensions | Petteri Aimonen | 4 | -6/+29 | |
2013-07-17 | Add test case for extensions decoding | Petteri Aimonen | 3 | -2/+39 | |
2013-07-17 | Implement generator support for extension fields (no encoder/decoder support ↵ | Petteri Aimonen | 4 | -2/+45 | |
yet) | |||||
2013-07-16 | Add test case for extra fields in AllTypes | Petteri Aimonen | 2 | -0/+1 | |
2013-07-06 | Add pb_decode_delimited and pb_encode_delimited wrapper functions. | Petteri Aimonen | 2 | -0/+20 | |
Update issue 74 Status: FixedInGit | |||||
2013-04-14 | Handle unterminated strings when encoding. | Petteri Aimonen | 2 | -3/+9 | |
If the null terminator is not present, string will be limited to the data size of the field. If you are still using the pb_enc_string (deprecated since 0.1.3) from callbacks, now would be an excellent time to stop. The pb_field_t for the callback will not contain proper data_size. Use pb_encode_string() instead. Update issue 68 Status: FixedInGit | |||||
2013-04-14 | Fix bug with empty strings in repeated string callbacks. | Petteri Aimonen | 3 | -0/+21 | |
Fix suggested by Henrik Carlgren. Added also unit test for the bug. Update issue 73 Status: FixedInGit | |||||
2013-04-02 | Change the callback function to use void**. | Petteri Aimonen | 4 | -16/+16 | |
NOTE: This change breaks backwards-compatibility by default. If you have old callback functions, you can define PB_OLD_CALLBACK_STYLE to retain the old behaviour. If you want to convert your old callbacks to new signature, you need to do the following: 1) Change decode callback argument to void **arg and encode callback argument to void * const *arg. 2) Change any reference to arg into *arg. The rationale for making the new behaviour the default is that it simplifies the common case of "allocate some memory in decode callback". Update issue 69 Status: FixedInGit | |||||
2013-03-09 | Implement error message support for the encoder side. | Petteri Aimonen | 3 | -1/+7 | |
Update issue 7 Status: FixedInGit | |||||
2013-03-09 | alltypes.proto no longer needs to include nanopb.proto | Petteri Aimonen | 1 | -2/+0 | |
2013-03-09 | Switch alltypes.proto to use the new .options file mechanism. | Petteri Aimonen | 2 | -23/+26 | |
2013-03-09 | Add option to run the tests with mudflap to detect pointer errors. | Petteri Aimonen | 1 | -0/+8 | |
2013-03-09 | Improve the fuzztest. | Petteri Aimonen | 1 | -4/+4 | |
Enable -fstack-protector-all to detect any stack smashing bugs. Also use test_decode3 for maximal vulnerable surface. | |||||
2013-03-09 | Fix error in backwards compatibility testcase | Petteri Aimonen | 1 | -1/+1 | |
2013-03-09 | Fix bug with decoding empty message types. Add test for the same. | Petteri Aimonen | 3 | -0/+12 | |
Note: the bug only applies to empty message types. Empty messages of non-empty message types are not affected. Update issue 65 Status: FixedInGit | |||||
2013-02-20 | Rename PB_HTYPE_ARRAY -> PB_HTYPE_REPEATED. | Petteri Aimonen | 2 | -305/+95 | |
This is a more logical name in parallel with PB_HTYPE_REQUIRED and PB_HTYPE_OPTIONAL. Warning: This breaks backwards-compatibility of generated .pb.c files. You will have to regenerate the files and recompile. | |||||
2013-02-07 | Sanitize filenames before putting them in #ifndef. | Petteri Aimonen | 2 | -1/+2 | |
Update issue 50 Status: FixedInGit | |||||
2013-02-06 | Add compile-time option PB_BUFFER_ONLY. | Petteri Aimonen | 1 | -2/+18 | |
This allows slight optimizations if only memory buffer support (as opposed to stream callbacks) is wanted. On ARM difference is -12% execution time, -4% code size when enabled. | |||||
2013-01-14 | Add field type FT_IGNORE to generator. | Petteri Aimonen | 1 | -0/+9 | |
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 | 2 | -0/+9 | |
Usage is: message Foo { option (nanopb_msgopt).packed_struct = true; ... } Valid also in file scope. Update issue 49 Status: FixedInGit | |||||
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 | 2 | -3/+3 | |
2012-11-16 | Fix STATIC_ASSERT macro when using multiple .proto files. | Steffen Siering | 3 | -2/+27 | |
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 | 2 | -0/+12 | |
2012-11-14 | Fix naming of enums when long_names=false. | Petteri Aimonen | 3 | -2/+8 | |
Modify test case to check that options.pb.o compiles. Update issue 42 Status: FixedInGit Update issue 43 Status: FixedInGit | |||||
2012-10-29 | Add option to use short names for enum values. | Petteri Aimonen | 3 | -7/+13 | |
Update issue 38 Status: FixedInGit | |||||
2012-10-29 | Allow defining field type in .proto. | Petteri Aimonen | 2 | -0/+7 | |
Update issue 30 Status: FixedInGit | |||||
2012-10-29 | Improve .proto options parsing. | Petteri Aimonen | 3 | -1/+40 | |
Options can now be defined on command line, file, message or in field scope. Update issue 12 Status: Started |