Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-12-29 | Organize allocation logic in generator, add pb_bytes_ptr_t. | Petteri Aimonen | 4 | -66/+63 | |
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 | Const-correctness and small cleanup. | Petteri Aimonen | 1 | -21/+25 | |
2013-12-29 | Generating and encoding messages with dynamic allocaiton | Martin Donath | 9 | -36/+373 | |
2013-12-22 | Negative int32 values take 10 bytes now. | Petteri Aimonen | 1 | -1/+1 | |
2013-12-21 | Fix problem with decode_legacy test case on Windows. | Petteri Aimonen | 1 | -3/+8 | |
2013-12-21 | Add test for extreme integer values (INT32_MAX etc.) in AllTypes. | Petteri Aimonen | 7 | -1/+92 | |
2013-12-21 | Add PB_LTYPE_UVARINT to fix encoding of negative int32 values. | Petteri Aimonen | 3 | -22/+55 | |
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-12-21 | Modify the alltypes test to check re-encoding through protoc. | Petteri Aimonen | 3 | -15/+53 | |
This way we can verify that the message is encoded exactly the same way as the official protobuf implementation would do it. | |||||
2013-11-14 | Optimize the common case of 1-byte reads for varints. | Petteri Aimonen | 1 | -3/+23 | |
For PB_BUFFER_ONLY configuration, this gives 20% speedup without increasing code size. | |||||
2013-11-13 | Make tests build in a separate folder, add to gitignore | Petteri Aimonen | 17 | -51/+61 | |
2013-11-11 | Fix path in FindNanopb.cmake. | Petteri Aimonen | 1 | -1/+1 | |
Update issue 94 Status: FixedInGit | |||||
2013-11-07 | Setting version to 0.2.5-dev | Petteri Aimonen | 2 | -2/+2 | |
2013-11-07 | Publishing nanopb-0.2.4 | Petteri Aimonen | 3 | -3/+3 | |
2013-11-02 | Add dates to changelog | Petteri Aimonen | 1 | -15/+15 | |
2013-11-02 | Update changelog | Petteri Aimonen | 1 | -0/+9 | |
2013-11-02 | Generate #define tags for extension fields also. | Petteri Aimonen | 2 | -0/+11 | |
Update issue 93 Status: FixedInGit | |||||
2013-10-29 | Remove the NANOPB_INTERNALS functions from public API. | Petteri Aimonen | 10 | -45/+27 | |
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-29 | Declare static functions before use. | Petteri Aimonen | 2 | -13/+43 | |
For compliance with MISRA C rules (issue 91). | |||||
2013-10-29 | Cleanup of comments. | Petteri Aimonen | 2 | -15/+27 | |
2013-10-29 | Add a definition of the security model to the documentation. | Petteri Aimonen | 3 | -2/+82 | |
2013-10-29 | Rename some internal functions to have unique names | Petteri Aimonen | 2 | -4/+4 | |
2013-10-24 | Detect invalid sizes when encoding bytes fields. | Petteri Aimonen | 3 | -3/+24 | |
2013-10-24 | Same fix for EncodedSize.__mul__ | Petteri Aimonen | 1 | -1/+1 | |
2013-10-24 | Handle also longs in EncodedSize | Petteri Aimonen | 1 | -1/+1 | |
2013-10-23 | Fix the size of length prefix for messages in other files. | Petteri Aimonen | 1 | -0/+5 | |
2013-10-23 | Generate message size #defines also for messages defined in multiple files. | Petteri Aimonen | 5 | -8/+105 | |
Add testcase for the same. | |||||
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-10-20 | Check array max size when encoding. | Petteri Aimonen | 2 | -0/+17 | |
Update issue 90 Status: FixedInGit | |||||
2013-09-26 | Add #defines for the maximum encoded message size. | Petteri Aimonen | 5 | -19/+111 | |
Update issue 89 Status: FixedInGit | |||||
2013-09-18 | Setting version to 0.2.4-dev | Petteri Aimonen | 2 | -2/+2 | |
2013-09-18 | Publishing nanopb-0.2.3 | Petteri Aimonen | 2 | -2/+2 | |
2013-09-13 | Update changelog | Petteri Aimonen | 1 | -0/+9 | |
2013-09-13 | Add a new very simple example | Petteri Aimonen | 5 | -7/+149 | |
2013-09-13 | Move examples into subfolders, add READMEs | Petteri Aimonen | 24 | -55/+187 | |
2013-09-13 | Merge branch 'dev_get_rid_of_ternary_operator' | Petteri Aimonen | 2 | -20/+45 | |
2013-09-13 | Fine-tune the naming of new macros before merging into master. | Petteri Aimonen | 2 | -12/+18 | |
Requires re-generation of files generated with dev_get_rid_of_ternary_operator. | |||||
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 | 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-11 | Get rid of the ternary operator in the pb_field_t initialization. | Petteri Aimonen | 2 | -20/+39 | |
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 | 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 | |