summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2012-11-14Fix naming of nested Enums with short namesPetteri Aimonen3-3/+16
2012-11-14Fix naming of enums when long_names=false.Petteri Aimonen4-5/+26
Modify test case to check that options.pb.o compiles. Update issue 42 Status: FixedInGit Update issue 43 Status: FixedInGit
2012-11-11Fix changelogPetteri Aimonen1-1/+1
2012-11-11Setting version to 0.1.8-devPetteri Aimonen2-2/+2
2012-11-11Publishing nanopb-0.1.7Petteri Aimonen2-2/+2
2012-10-29Document new generator optionsPetteri Aimonen2-0/+24
2012-10-29Add nanopb version number to generated files.Petteri Aimonen3-1/+16
tools/set_version.sh is used to update the values. Update issue 36 Status: FixedInGit
2012-10-29Add extern "C" to header files.Petteri Aimonen3-1/+23
Update issue 35 Status: FixedInGit
2012-10-29Add option to use short names for enum values.Petteri Aimonen6-14/+58
Update issue 38 Status: FixedInGit
2012-10-29Allow defining field type in .proto.Petteri Aimonen5-8/+68
Update issue 30 Status: FixedInGit
2012-10-29Improve .proto options parsing.Petteri Aimonen6-22/+129
Options can now be defined on command line, file, message or in field scope. Update issue 12 Status: Started
2012-10-29Use optparse in nanopb_generator.pyPetteri Aimonen1-31/+85
2012-10-29Give names to generated structures to allow forward declaration.Petteri Aimonen2-4/+6
Update issue 39 Status: FixedInGit
2012-10-21Improve the person_with_extra_field test.Petteri Aimonen3-4/+1
Added a field after the extra field to verify it's also ok.
2012-10-18Remove the "buf = NULL" => skip requirement from pb_istream_t callbacks.Petteri Aimonen8-33/+35
Rationale: it's easy to implement the callback wrong. Doing so introduces io errors when unknown fields are present in the input. If code is not tested with unknown fields, these bugs can remain hidden for long time. Added a special case for the memory buffer stream, where it gives a small speed benefit. Added testcase for skipping fields with test_decode2 implementation. Update issue 37 Status: FixedInGit
2012-10-14Add tests for negative values in the alltypes testcase.Petteri Aimonen2-24/+24
2012-09-18Add buffer size check in test_decode1.c example.Petteri Aimonen1-0/+6
This check gives a better error message in case you test stuff and have a message longer than 512 bytes. Update issue 34 Status: FixedInGit
2012-09-03Enable -Wconversion for core and fix the warnings.Petteri Aimonen5-14/+17
This should help avoid issue 33 in the future.
2012-09-03Fix build warnings on MS compilersdch1-4/+4
Update issue 33 Status: FixedInGit
2012-09-02Created a CHANGELOG file for easy reference.Petteri Aimonen2-0/+39
2012-09-02Clean up one (uint64_t) cast.Petteri Aimonen1-2/+2
2012-09-02Fix -Wextra warning in generated .pb.c files.Petteri Aimonen2-1/+4
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-26Fix warnings with -Wcast-qual. Add test for C++ compile.Petteri Aimonen3-17/+30
Update issue 27 Status: FixedInGit
2012-08-26Add pb_decode_noinit and use it from pb_dec_submessage.Petteri Aimonen3-4/+24
This avoids double initialization when decoding nested submessages. Fixes an issue with submessage arrays that was present in previous version of this patch. Update issue 28 Status: FixedInGit
2012-08-26Added alltypes-testcases for optional fields and default values.Petteri Aimonen4-12/+180
2012-08-26Revert "Add pb_decode_noinit and use it from pb_dec_submessage."Petteri Aimonen3-24/+4
The patch breaks default values inside submessage arrays (I think). Have to add test cases and check back. This reverts commit f1d7640fe1be0f150f604c72108ea516222c2505.
2012-08-26Add pb_decode_noinit and use it from pb_dec_submessage.Petteri Aimonen3-4/+24
This avoids double initialization when decoding nested submessages. Update issue 28 Status: FixedInGit
2012-08-24Add note that stream callbacks must read the whole requested length.Petteri Aimonen1-0/+1
Fixes issue #22.
2012-08-24Implement error messages in the decoder side.Petteri Aimonen12-32/+52
Update issue 7 Status: Started
2012-08-24Document pb_close_string_substream.Petteri Aimonen1-1/+13
2012-08-24Revert "Change the substream implementation in pb_decode."Petteri Aimonen3-14/+29
This reverts commit dc2da0edc568b29361479fb7405c96b1a13442cf. Add pb_close_string_substream() for copying back the state. This makes adding error messages easier in the future, as also them need to be propagated back from the substream.
2012-08-24Reorganize the field decoder interface.Petteri Aimonen6-152/+150
This makes the field decoding functions more intuitive to use. The old interface is still present if you specify NANOPB_INTERNALS. Update issue 2 Status: FixedInGit
2012-08-24Change the substream implementation in pb_decode.Petteri Aimonen2-20/+13
This makes it unnecessary to copy back the state, and also relaxes the requirements on callbacks (bytes_left will always be valid). It decreases code size by a few bytes, but may be just slightly slower.
2012-08-24Fix a confusing statement in a comment.Petteri Aimonen1-1/+1
2012-08-16Fix casting issuesStan Hu1-2/+2
2012-08-09Declare warn_unused_result only on GCC >= 3.4.0.Petteri Aimonen2-10/+10
Thanks to cea.max.simoes for bug report & fix. Update issue 25 Status: FixedInGit
2012-08-04Fix signedness warning in example_unions.Petteri Aimonen1-1/+1
2012-07-31Fix bug in decoder with packed arrays.Petteri Aimonen1-1/+4
Update issue 23 Status: FixedInGit
2012-07-31Extend 'alltypes' testcase to cover repeated fields.Petteri Aimonen3-24/+104
2012-07-19Additional unsigned vs. signed fix for tagPetteri Aimonen1-1/+1
2012-07-18Fix an unsigned vs. signed warning on some compiler.Petteri Aimonen2-3/+3
2012-07-18Fixed a few compiler warnings, added check.Petteri Aimonen3-5/+8
Main code is now compiled (for tests) with -pedantic -Wextra. The test programs are not as strictly bound, but this should improve the chances that atleast the core library compiles with most compilers without warnings.
2012-07-05Fix bug with .proto without messages (again), and add a test case for it.Petteri Aimonen3-10/+19
2012-07-05Apparently some compilers don't want to automatically cast size_t to uint64_t.Petteri Aimonen1-4/+4
2012-07-05Fix some typos in __BIG_ENDIAN__ codePetteri Aimonen1-2/+2
2012-07-05Replace #warning with the standard #error.Petteri Aimonen2-7/+3
2012-07-05Cast enum vaules to integers and cast them back where appropraiteStan Hu2-4/+4
to prevent mixed enumeration type compiler warnings
2012-07-01Replace PB_MANY_FIELDS with PB_FIELD_16BIT and PB_FIELD_32BIT.Petteri Aimonen3-34/+65
This allows more precise control over the memory use vs. field size.
2012-06-30Add PB_MANY_FIELDS option for supporting fields > 255.Petteri Aimonen3-1/+56
Add generator warning if this is necessary. Fixes issue #14.
2012-06-30Warn if PB_MAX_REQUIRED_FIELDS is not large enough.Petteri Aimonen1-0/+10