Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2014-03-15 | Finish the alltypes_pointer testcase, use valgrind if available. | Petteri Aimonen | 4 | -168/+90 | |
2014-03-15 | Get rid of pb_bytes_ptr_t, just allocate pb_bytes_array_t dynamically. | Petteri Aimonen | 3 | -8/+10 | |
This makes the internal logic much simpler, and also keeps the datatypes more similar between STATIC/POINTER cases. It will still be a bit cumbersome to use because of variable length array member. Macros PB_BYTES_ARRAY_T(n) and PB_BYTES_ARRAY_T_ALLOCSIZE(n) have been added to make life a bit easier. This has the drawback that it is no longer as easy to use externally allocated byte array as input for bytes field in pointer mode. However, this is still easy to do using callbacks, so it shouldn't be a large issue. | |||||
2014-03-12 | Add pb_release() function | Petteri Aimonen | 3 | -20/+81 | |
2014-03-10 | More fixes for dynamic allocation | Petteri Aimonen | 2 | -25/+28 | |
2014-02-24 | Beginnings of malloc support in pb_decode | Petteri Aimonen | 2 | -1/+220 | |
2014-02-12 | Add test case for package names defined in .proto file. | Petteri Aimonen | 1 | -0/+36 | |
2014-02-10 | Add AllTypes decoding test with callbacks. | Petteri Aimonen | 2 | -1/+427 | |
Update issue 99 Status: FixedInGit | |||||
2014-02-09 | Add AllTypes encoding test for callbacks (issue #99) | Petteri Aimonen | 3 | -0/+420 | |
Still need to do the decoding side. | |||||
2014-02-05 | Extreme negative integer constants are a bit nasty to define in C, just ↵ | Petteri Aimonen | 1 | -2/+2 | |
avoid the trouble in tests for now. | |||||
2014-02-04 | Add proper suffixes for integer default values. | Petteri Aimonen | 1 | -10/+10 | |
Update issue 102 Status: FixedInGit | |||||
2014-02-04 | Add strict-aliasing GCC warnings for core | Petteri Aimonen | 1 | -0/+1 | |
2013-12-29 | Fix bundled protoc detection in scons script | Petteri Aimonen | 1 | -3/+4 | |
2013-12-29 | Fix spaces in paths on Windows also | Petteri Aimonen | 1 | -1/+1 | |
2013-12-29 | Fix handling spaces in directory name | Petteri Aimonen | 1 | -2/+2 | |
2013-12-29 | Fix build on Windows | Petteri Aimonen | 1 | -2/+4 | |
2013-12-29 | Fix path change: compat/ -> extra/ | Petteri Aimonen | 1 | -1/+1 | |
2013-12-29 | Small fix for previous | Petteri Aimonen | 1 | -2/+2 | |
2013-12-29 | Check for supported GCC CCFLAGS when building tests. | Petteri Aimonen | 1 | -6/+20 | |
2013-12-29 | Add a SCons tool for nanopb protos. | Petteri Aimonen | 5 | -41/+129 | |
This tool script is useful both for building the tests and also for use in other applications. | |||||
2013-12-29 | Bring alltypes_pointer testcase up to date | Petteri Aimonen | 3 | -96/+24 | |
2013-12-29 | Improve alltypes_pointer test case | Petteri Aimonen | 3 | -95/+137 | |
2013-12-29 | Organize allocation logic in generator, add pb_bytes_ptr_t. | Petteri Aimonen | 1 | -15/+7 | |
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 | 4 | -0/+249 | |
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 | 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-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 | |