Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
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 | Merge branch 'dev_tests_using_scons' | Petteri Aimonen | 70 | -291/+1026 | |
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 | Move the declarations of _pb_ostream_t and _pb_istream_t before first use. | Petteri Aimonen | 2 | -67/+67 | |
Otherwise Microsoft Visual C++ threats them as C++ classes instead of plain structs, forbidding use in C linkage functions. Thanks to Markus Schwarzenberg for the patch. Update issue 84 Status: Started | |||||
2013-09-10 | Build fixes for Windows/Visual C++ | Petteri Aimonen | 13 | -49/+141 | |
2013-09-10 | Add an example pb_syshdr.h file for platforms without C99. | Petteri Aimonen | 3 | -0/+89 | |
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-09 | Move the declarations of _pb_ostream_t and _pb_istream_t before first use. | Petteri Aimonen | 2 | -67/+67 | |
Otherwise Microsoft Visual C++ threats them as C++ classes instead of plain structs, forbidding use in C linkage functions. Thanks to Markus Schwarzenberg for the patch. Update issue 84 Status: Started | |||||
2013-09-08 | Add support for running the nanopb generator as protoc plugin. | Petteri Aimonen | 4 | -55/+419 | |
Will be used to implement issue 47. For now, symlink nanopb_generator.py as protoc-gen-nanopb and use protoc --nanopb_out=. to call it. | |||||
2013-09-08 | Start moving the tests into subfolders. Transition to SCons for build system ↵ | Petteri Aimonen | 43 | -162/+132 | |
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 | 2 | -5/+16 | |
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-08-18 | Setting version to 0.2.3-dev | Petteri Aimonen | 2 | -2/+2 | |
2013-08-18 | Publishing nanopb-0.2.2 | Petteri Aimonen | 2 | -2/+2 | |
2013-08-08 | Update changelog | Petteri Aimonen | 1 | -0/+9 | |
2013-08-08 | Document field extensions support | Petteri Aimonen | 3 | -1/+80 | |
Update issue 17 Status: FixedInGit | |||||
2013-08-08 | Document PB_SYSTEM_HEADER | Petteri Aimonen | 2 | -1/+8 | |
2013-07-22 | Finish the testcase for extensions | Petteri Aimonen | 4 | -6/+29 | |
2013-07-22 | Fix bugs in extension support when multiple extension fields are present. | Petteri Aimonen | 3 | -4/+23 | |
2013-07-17 | Extension support implemented for decoder. | Petteri Aimonen | 3 | -7/+109 | |
Testing is still needed. Also only 'optional' extension fields are supported now, 'repeated' fields are not yet supported. | |||||
2013-07-17 | Add test case for extensions decoding | Petteri Aimonen | 3 | -2/+39 | |
2013-07-17 | Implement extension support for the encoder | Petteri Aimonen | 2 | -22/+74 | |
2013-07-17 | Implement generator support for extension fields (no encoder/decoder support ↵ | Petteri Aimonen | 6 | -16/+183 | |
yet) | |||||
2013-07-16 | Fix formatting in documentation | Petteri Aimonen | 1 | -23/+41 | |
2013-07-16 | Check for empty message type before incrementing required_field_index. | Kent Ryhorchuk | 1 | -3/+3 | |
If you have a message that defined as empty, but attempt to decode a message that has one or more unknown fields then pb_decode fails. The method used to count the number of required fields counts 1 required field because the default type of PB_LAST_FIELD is PB_HTYPE_REQUIRED. | |||||
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 | 6 | -0/+48 | |
Update issue 74 Status: FixedInGit | |||||
2013-07-06 | Clean up the comments in pb_encode.h and pb_decode.h | Petteri Aimonen | 2 | -86/+150 | |
2013-07-06 | Add section in pb.h for changing compilation settings. | Petteri Aimonen | 2 | -19/+64 | |
Update issue 76 Status: FixedInGit | |||||
2013-07-06 | Add error message macros to API reference. | Petteri Aimonen | 1 | -0/+25 | |
2013-07-06 | Document the .options file usage. | Petteri Aimonen | 3 | -48/+193 | |
Also add note about the 'packed' message option being incompatible with CPUs that do not support unaligned access. Update issue 12 Status: FixedInGit Update issue 77 Status: FixedInGit | |||||
2013-07-06 | Switch the example project to use the new .options file | Petteri Aimonen | 2 | -11/+16 | |
2013-06-03 | Include the field tags in the generated .pb.h file. | Petteri Aimonen | 1 | -0/+11 | |
Patch from Michael Haberler. | |||||
2013-04-14 | Setting version to 0.2.2-dev | Petteri Aimonen | 2 | -2/+2 | |
2013-04-14 | Publishing nanopb-0.2.1 | Petteri Aimonen | 2 | -2/+2 | |
2013-04-14 | Update changelog | Petteri Aimonen | 1 | -0/+17 | |
2013-04-14 | Handle unterminated strings when encoding. | Petteri Aimonen | 3 | -5/+19 | |
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 | 4 | -2/+23 | |
Fix suggested by Henrik Carlgren. Added also unit test for the bug. Update issue 73 Status: FixedInGit | |||||
2013-04-08 | Avoid maybe-uninitialized warning | Petteri Aimonen | 1 | -4/+6 | |
Patch from dch. | |||||
2013-04-08 | No need to include stdbool.h separately | dch | 2 | -2/+0 | |
2013-04-08 | __pragma keyword is only supported by recent Microsoft compilers | dch | 1 | -1/+1 | |
2013-04-02 | Do not generate has_ fields for callback fields. | Petteri Aimonen | 1 | -1/+1 | |
The arg field can be used to store the field presence from inside the callback. Furthermore, having the has_ field for encoding callbacks would be more annoying than useful. Update issue 70 Status: FixedInGit | |||||
2013-04-02 | Change the callback function to use void**. | Petteri Aimonen | 11 | -30/+58 | |
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 | 2 | -4/+29 | |
Update issue 66 Status: FixedInGit | |||||
2013-03-09 | Make the generator options accept a file name in addition to format string. | Petteri Aimonen | 1 | -2/+10 | |