summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2013-12-29Package as .zip, convert linebreaksPetteri Aimonen1-0/+8
2013-12-29Add build script for windows packagePetteri Aimonen3-19/+46
2013-12-29Add descriptor.proto to repository to avoid messing with protoc include path.Petteri Aimonen4-4/+624
2013-12-29Add script for making linux binary packagePetteri Aimonen2-0/+40
2013-12-29Move the generator .proto files to a subdir, and get rid of precompiled ↵Petteri Aimonen7-326/+4
versions.
2013-12-29Bring alltypes_pointer testcase up to datePetteri Aimonen3-96/+24
2013-12-29Improve alltypes_pointer test casePetteri Aimonen3-95/+137
2013-12-29Fix missing error messages in pb_encode.cPetteri Aimonen1-1/+6
2013-12-29Rename encode_static_field -> encode_basic_field.Petteri Aimonen1-4/+4
2013-12-29Organize allocation logic in generator, add pb_bytes_ptr_t.Petteri Aimonen4-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-29Const-correctness and small cleanup.Petteri Aimonen1-21/+25
2013-12-29Generating and encoding messages with dynamic allocaitonMartin Donath9-36/+373
2013-12-22Negative int32 values take 10 bytes now.Petteri Aimonen1-1/+1
2013-12-21Fix problem with decode_legacy test case on Windows.Petteri Aimonen1-3/+8
2013-12-21Add test for extreme integer values (INT32_MAX etc.) in AllTypes.Petteri Aimonen7-1/+92
2013-12-21Add PB_LTYPE_UVARINT to fix encoding of negative int32 values.Petteri Aimonen3-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-21Modify the alltypes test to check re-encoding through protoc.Petteri Aimonen3-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-14Optimize the common case of 1-byte reads for varints.Petteri Aimonen1-3/+23
For PB_BUFFER_ONLY configuration, this gives 20% speedup without increasing code size.
2013-11-13Make tests build in a separate folder, add to gitignorePetteri Aimonen17-51/+61
2013-11-11Fix path in FindNanopb.cmake.Petteri Aimonen1-1/+1
Update issue 94 Status: FixedInGit
2013-11-07Setting version to 0.2.5-devPetteri Aimonen2-2/+2
2013-11-07Publishing nanopb-0.2.4Petteri Aimonen3-3/+3
2013-11-02Add dates to changelogPetteri Aimonen1-15/+15
2013-11-02Update changelogPetteri Aimonen1-0/+9
2013-11-02Generate #define tags for extension fields also.Petteri Aimonen2-0/+11
Update issue 93 Status: FixedInGit
2013-10-29Remove the NANOPB_INTERNALS functions from public API.Petteri Aimonen10-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-29Declare static functions before use.Petteri Aimonen2-13/+43
For compliance with MISRA C rules (issue 91).
2013-10-29Cleanup of comments.Petteri Aimonen2-15/+27
2013-10-29Add a definition of the security model to the documentation.Petteri Aimonen3-2/+82
2013-10-29Rename some internal functions to have unique namesPetteri Aimonen2-4/+4
2013-10-24Detect invalid sizes when encoding bytes fields.Petteri Aimonen3-3/+24
2013-10-24Same fix for EncodedSize.__mul__Petteri Aimonen1-1/+1
2013-10-24Handle also longs in EncodedSizePetteri Aimonen1-1/+1
2013-10-23Fix the size of length prefix for messages in other files.Petteri Aimonen1-0/+5
2013-10-23Generate message size #defines also for messages defined in multiple files.Petteri Aimonen5-8/+105
Add testcase for the same.
2013-10-20Define pb_size_t and pb_ssize_t data types.Petteri Aimonen1-22/+19
Use these in pb_field_t definition to clean up some #ifs, and also to prepare for solving issue #82.
2013-10-20Check array max size when encoding.Petteri Aimonen2-0/+17
Update issue 90 Status: FixedInGit
2013-09-26Add #defines for the maximum encoded message size.Petteri Aimonen5-19/+111
Update issue 89 Status: FixedInGit
2013-09-18Setting version to 0.2.4-devPetteri Aimonen2-2/+2
2013-09-18Publishing nanopb-0.2.3Petteri Aimonen2-2/+2
2013-09-13Update changelogPetteri Aimonen1-0/+9
2013-09-13Add a new very simple examplePetteri Aimonen5-7/+149
2013-09-13Move examples into subfolders, add READMEsPetteri Aimonen24-55/+187
2013-09-13Merge branch 'dev_get_rid_of_ternary_operator'Petteri Aimonen2-20/+45
2013-09-13Fine-tune the naming of new macros before merging into master.Petteri Aimonen2-12/+18
Requires re-generation of files generated with dev_get_rid_of_ternary_operator.
2013-09-11Expand extra_fields test to cover field skipping in case of streams.Petteri Aimonen2-0/+4
2013-09-11Disable warning about uint64_t (long long)Petteri Aimonen1-1/+4
2013-09-11Fix build error when path contains spacesPetteri Aimonen1-3/+6
2013-09-11Merge branch 'dev_tests_using_scons'Petteri Aimonen70-291/+1026
2013-09-11Add tests for different compilation optionsPetteri Aimonen9-6/+286