Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2014-02-24 | Beginnings of malloc support in pb_decode | Petteri Aimonen | 1 | -0/+4 | |
2014-02-15 | Setting version to 0.2.7-dev | Petteri Aimonen | 1 | -1/+1 | |
2014-02-15 | Publishing nanopb-0.2.6 | Petteri Aimonen | 1 | -1/+1 | |
2014-02-04 | Add coments to places where STATIC_ASSERT is used. | Petteri Aimonen | 1 | -3/+13 | |
Update issue 96 Status: FixedInGit | |||||
2014-01-01 | Setting version to 0.2.6-dev | Petteri Aimonen | 1 | -1/+1 | |
2014-01-01 | Publishing nanopb-0.2.5 | Petteri Aimonen | 1 | -1/+1 | |
2013-12-29 | Organize allocation logic in generator, add pb_bytes_ptr_t. | Petteri Aimonen | 1 | -3/+11 | |
Allocation decision is now made before the field data type is decided. This way the data type decisions can more cleanly account for the allocation type, i.e. FT_DEFAULT logic etc. Added pb_bytes_ptr_t for pointer-allocated bytes-fields. There is no point generating separate structs for these, as they would all be of the same type. | |||||
2013-12-29 | Generating and encoding messages with dynamic allocaiton | Martin Donath | 1 | -0/+17 | |
2013-12-21 | Add PB_LTYPE_UVARINT to fix encoding of negative int32 values. | Petteri Aimonen | 1 | -17/+13 | |
Apparently int32 values that are negative must be cast into int64 first before being encoded. Because uint32 still needs to be cast to uint64, the cases for int32 and uint32 had to be separated. Update issue 97 Status: FixedInGit | |||||
2013-11-07 | Setting version to 0.2.5-dev | Petteri Aimonen | 1 | -1/+1 | |
2013-11-07 | Publishing nanopb-0.2.4 | Petteri Aimonen | 1 | -1/+1 | |
2013-10-20 | Define pb_size_t and pb_ssize_t data types. | Petteri Aimonen | 1 | -22/+19 | |
Use these in pb_field_t definition to clean up some #ifs, and also to prepare for solving issue #82. | |||||
2013-09-18 | Setting version to 0.2.4-dev | Petteri Aimonen | 1 | -1/+1 | |
2013-09-18 | Publishing nanopb-0.2.3 | Petteri Aimonen | 1 | -1/+1 | |
2013-09-13 | Merge branch 'dev_get_rid_of_ternary_operator' | Petteri Aimonen | 1 | -19/+43 | |
2013-09-13 | Fine-tune the naming of new macros before merging into master. | Petteri Aimonen | 1 | -11/+17 | |
Requires re-generation of files generated with dev_get_rid_of_ternary_operator. | |||||
2013-09-11 | Get rid of the ternary operator in the pb_field_t initialization. | Petteri Aimonen | 1 | -19/+37 | |
Some compilers where unable to detect that the ternary operator can be evaluated at the compile time. This commit does the evaluation on the Python side, which should fix the problem. The new .pb.c files are generated using PB_FIELD2() macro. The old PB_FIELD() macro remains, so that previously generated files keep working. | |||||
2013-09-10 | Add an example pb_syshdr.h file for platforms without C99. | Petteri Aimonen | 1 | -0/+11 | |
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-08-18 | Setting version to 0.2.3-dev | Petteri Aimonen | 1 | -1/+1 | |
2013-08-18 | Publishing nanopb-0.2.2 | Petteri Aimonen | 1 | -1/+1 | |
2013-07-22 | Fix bugs in extension support when multiple extension fields are present. | Petteri Aimonen | 1 | -0/+11 | |
2013-07-17 | Implement extension support for the encoder | Petteri Aimonen | 1 | -1/+1 | |
2013-07-17 | Implement generator support for extension fields (no encoder/decoder support ↵ | Petteri Aimonen | 1 | -2/+53 | |
yet) | |||||
2013-07-06 | Add section in pb.h for changing compilation settings. | Petteri Aimonen | 1 | -16/+57 | |
Update issue 76 Status: FixedInGit | |||||
2013-04-14 | Setting version to 0.2.2-dev | Petteri Aimonen | 1 | -1/+1 | |
2013-04-14 | Publishing nanopb-0.2.1 | Petteri Aimonen | 1 | -1/+1 | |
2013-04-08 | __pragma keyword is only supported by recent Microsoft compilers | dch | 1 | -1/+1 | |
2013-04-02 | Change the callback function to use void**. | Petteri Aimonen | 1 | -0/+9 | |
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-13 | Fix warning on clang. | Petteri Aimonen | 1 | -1/+1 | |
Update issue 67 Status: FixedInGit | |||||
2013-03-13 | Add support for packed structures on IAR and MSVC. | Petteri Aimonen | 1 | -4/+24 | |
Update issue 66 Status: FixedInGit | |||||
2013-03-09 | Add PB_SYSTEM_HEADER compile time option. | Petteri Aimonen | 1 | -0/+5 | |
This allows replacing the C99 standard include file names with a single system-specific file. It should provide all the necessary system functions (typedefs, memset, memcpy, strlen). Update issue 62 Status: FixedInGit | |||||
2013-03-02 | Setting version to 0.2.1-dev | Petteri Aimonen | 1 | -1/+1 | |
2013-03-02 | Publishing nanopb-0.2.0 | Petteri Aimonen | 1 | -1/+1 | |
2013-02-20 | Separate PB_HTYPE to PB_ATYPE and PB_HTYPE. | Petteri Aimonen | 1 | -23/+18 | |
Also clean up the logic so that it is easier to implement more allocation types in the future. Update issue 53 Status: FixedInGit | |||||
2013-02-20 | Rename PB_HTYPE_ARRAY -> PB_HTYPE_REPEATED. | Petteri Aimonen | 1 | -2/+2 | |
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-17 | Reformat generated .pb.c files using macros. | Petteri Aimonen | 1 | -1/+76 | |
This has the following advantages: 1) Easier to modify pb_field_t encoding 2) Simpler generator logic 3) Tidier looking, easier to read .pb.c files Update issue 58 Status: FixedInGit | |||||
2013-02-11 | Replace pb_type_t enum with #defines. | Petteri Aimonen | 1 | -54/+54 | |
See issue #57. | |||||
2013-02-11 | Set version to 0.2.0-dev | Petteri Aimonen | 1 | -1/+1 | |
2013-01-21 | Fix misleading comment (current generator sets LTYPE always). | Petteri Aimonen | 1 | -2/+2 | |
2012-12-13 | Setting version to 0.1.9-dev | Petteri Aimonen | 1 | -1/+1 | |
2012-12-13 | Publishing nanopb-0.1.8 | Petteri Aimonen | 1 | -1/+1 | |
2012-11-16 | Rename test_compiles.c to test_multiple_files.c | Petteri Aimonen | 1 | -1/+3 | |
2012-11-16 | Fix STATIC_ASSERT macro when using multiple .proto files. | Steffen Siering | 1 | -1/+3 | |
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-11 | Setting version to 0.1.8-dev | Petteri Aimonen | 1 | -1/+1 | |
2012-11-11 | Publishing nanopb-0.1.7 | Petteri Aimonen | 1 | -1/+1 | |
2012-10-29 | Add nanopb version number to generated files. | Petteri Aimonen | 1 | -0/+2 | |
tools/set_version.sh is used to update the values. Update issue 36 Status: FixedInGit | |||||
2012-10-29 | Give names to generated structures to allow forward declaration. | Petteri Aimonen | 1 | -2/+4 | |
Update issue 39 Status: FixedInGit | |||||
2012-09-03 | Enable -Wconversion for core and fix the warnings. | Petteri Aimonen | 1 | -3/+6 | |
This should help avoid issue 33 in the future. | |||||
2012-09-02 | Fix -Wextra warning in generated .pb.c files. | Petteri Aimonen | 1 | -1/+1 | |
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-24 | Implement error messages in the decoder side. | Petteri Aimonen | 1 | -0/+18 | |
Update issue 7 Status: Started |