Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-07-18 | Fix an unsigned vs. signed warning on some compiler. | Petteri Aimonen | 2 | -3/+3 | |
2012-07-18 | Fixed a few compiler warnings, added check. | Petteri Aimonen | 3 | -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-05 | Fix bug with .proto without messages (again), and add a test case for it. | Petteri Aimonen | 3 | -10/+19 | |
2012-07-05 | Apparently some compilers don't want to automatically cast size_t to uint64_t. | Petteri Aimonen | 1 | -4/+4 | |
2012-07-05 | Fix some typos in __BIG_ENDIAN__ code | Petteri Aimonen | 1 | -2/+2 | |
2012-07-05 | Replace #warning with the standard #error. | Petteri Aimonen | 2 | -7/+3 | |
2012-07-05 | Cast enum vaules to integers and cast them back where appropraite | Stan Hu | 2 | -4/+4 | |
to prevent mixed enumeration type compiler warnings | |||||
2012-07-01 | Replace PB_MANY_FIELDS with PB_FIELD_16BIT and PB_FIELD_32BIT. | Petteri Aimonen | 3 | -34/+65 | |
This allows more precise control over the memory use vs. field size. | |||||
2012-06-30 | Add PB_MANY_FIELDS option for supporting fields > 255. | Petteri Aimonen | 3 | -1/+56 | |
Add generator warning if this is necessary. Fixes issue #14. | |||||
2012-06-30 | Warn if PB_MAX_REQUIRED_FIELDS is not large enough. | Petteri Aimonen | 1 | -0/+10 | |
2012-06-30 | Improve the detection of missing required fields. | Petteri Aimonen | 6 | -24/+229 | |
Now the limit of tracked fields is configurable at compile-time using PB_MAX_REQUIRED_FIELDS. Added related test and updated documentation. Fixes issue #18. | |||||
2012-06-25 | Fixed formatting in docs | Petteri Aimonen | 1 | -2/+5 | |
2012-06-25 | Documented NANOPB_INTERNALS compilation option | Petteri Aimonen | 1 | -0/+1 | |
2012-06-25 | Note about __BIG_ENDIAN__ compilation option | Petteri Aimonen | 1 | -0/+6 | |
2012-06-20 | Fix error when .proto contains no Messages (e.g. just enums). | Petteri Aimonen | 1 | -1/+1 | |
Thanks to Paul Fertser for reporting this bug. | |||||
2012-06-16 | Added example on how to handle unions. | Petteri Aimonen | 4 | -0/+224 | |
2012-06-16 | Added new functions to public interface in pb_decode.h. | Petteri Aimonen | 3 | -29/+73 | |
pb_decode_tag and pb_skip_field allow manually iterating the fields in a message. | |||||
2012-06-13 | Fix non-constant initializer errors with some compilers. | Petteri Aimonen | 2 | -8/+28 | |
Fixes issue #13. Thanks to Kevin Worth for reporting. | |||||
2012-06-12 | Add descriptor.proto into the #include exclusion list | Petteri Aimonen | 1 | -1/+1 | |
2012-05-19 | Merge branch 'master' of https://code.google.com/p/nanopb | Petteri Aimonen | 2 | -5/+5 | |
2012-05-19 | Add better error messages in the generator when libraries cannot be imported. | Petteri Aimonen | 1 | -2/+22 | |
Fixes issue #5. | |||||
2012-05-19 | Fix 64-bitness warnings in the example. | Petteri Aimonen | 2 | -5/+5 | |
Fixes issues 9 and 10. | |||||
2012-04-18 | Fixing compiler warnings, mostly related to unused parameters. | Petteri Aimonen | 3 | -4/+16 | |
Thanks to David Hotham for the patch. Fixes issue 8. | |||||
2012-03-01 | Refactoring the field encoder interface. | Petteri Aimonen | 6 | -173/+179 | |
Replaced the confusing pb_enc_* functions with new pb_encode_* functions that have a cleaner interface. Updated documentation. Got rid of the endian_copy stuff in pb_encode.c, instead using C casts to do it automatically. This makes the code safer and also reduces binary size by about 5%. Fixes Issue 6. | |||||
2012-02-15 | Modified nanopb_generator.py to generate includes for other .proto files. | Petteri Aimonen | 1 | -2/+12 | |
Implementation was suggested by extremeblue99. Fixes issue 4. | |||||
2012-01-30 | Fixed nanopb_generator.py to read the input file in binary mode. | Petteri Aimonen | 1 | -1/+1 | |
2012-01-23 | Improved documentation on field decoders. | Petteri Aimonen | 1 | -5/+24 | |
2012-01-12 | Fixed issue 1 reported by Erik Rosen: | Petteri Aimonen | 4 | -7/+17 | |
The size of non-callback bytes-fields was miscalculated, which caused all following fields in a message to contain garbage. Previous commit contains a testcase for this. This fix changes the generated message description. If your protocol uses bytes-fields, you should regenerate *.pb.c. | |||||
2012-01-12 | Added an encode/decode test for 'required' fields of all types. | Petteri Aimonen | 4 | -3/+168 | |
2012-01-12 | Fixed a bug in the generator that caused a compiler error on sfixed32 and ↵ | Petteri Aimonen | 1 | -2/+2 | |
sfixed64 fields. | |||||
2012-01-06 | Linewrapping in license | Petteri Aimonen | 1 | -5/+14 | |
2012-01-05 | Added logo for project :) | Petteri Aimonen | 5 | -0/+1471 | |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@1095 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-12-30 | Make the fuzztest runnable again | Petteri Aimonen | 1 | -2/+2 | |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@1091 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-12-30 | Expanding the tests to better cover decoding from memory buffer. | Petteri Aimonen | 4 | -26/+103 | |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@1090 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-12-30 | Fixed a bug related to submessage encoding into memory buffer. | Petteri Aimonen | 5 | -26/+67 | |
Stream state was not copied back from substream in pb_enc_submessage, which caused garbage output if the stream callback modified the state. Expanded tests to cover this problem. Thanks to Paweł Pery for debugging and reporting this problem. git-svn-id: https://svn.kapsi.fi/jpa/nanopb@1089 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-11-30 | Merged 0005-Handle-endianness-correctly.patch by Matt Kern. | Petteri Aimonen | 1 | -5/+9 | |
On big endian machines, pb_dec_fixed32 and pb_dec_fixed64 were incorrectly overwriting the result value even if reading failed. git-svn-id: https://svn.kapsi.fi/jpa/nanopb@1022 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-11-30 | Merged 0004-Added-missing-trailing-newlines.patch by Matt Kern. | Petteri Aimonen | 3 | -3/+3 | |
Just adding newlines at the end of files to satisfy old GCC versions. git-svn-id: https://svn.kapsi.fi/jpa/nanopb@1021 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-11-30 | Merged 0003-Fixed-format-specifiers.patch by Matt Kern. | Petteri Aimonen | 2 | -8/+8 | |
Fixes cross-platform issues with the length modifier in printf specifiers, most importantly %d -> %ld. git-svn-id: https://svn.kapsi.fi/jpa/nanopb@1020 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-11-30 | Added Makefile for generating nanopb_pb2.py. | Petteri Aimonen | 1 | -0/+2 | |
I still left the precompiled version in place, as it "often works" :) git-svn-id: https://svn.kapsi.fi/jpa/nanopb@1019 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-11-10 | Fix some compiler warnings in strict C89 mode | Petteri Aimonen | 2 | -8/+8 | |
Contributed by Michael Poole. git-svn-id: https://svn.kapsi.fi/jpa/nanopb@1004 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-11-04 | Some additions to documentation | Petteri Aimonen | 3 | -7/+2883 | |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@1003 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-09-18 | Documentation outdated phrase | Petteri Aimonen | 1 | -1/+1 | |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@980 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-09-18 | Added comments to the simplest decode/encode examples. | Petteri Aimonen | 2 | -6/+25 | |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@979 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-09-14 | Added README | Petteri Aimonen | 2 | -2/+11 | |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@976 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-09-13 | Fixed a bunch of bugs related to callback fields. | Petteri Aimonen | 13 | -104/+263 | |
Most importantly, callback fields in submessages were being overwritten with garbage, causing segfaults. Additionally, converted PB_LTYPE_FIXED to PB_LTYPE_FIXED32 and PB_LTYPE_FIXED64. This makes the interface a bit easier to use, and in addition runs faster. git-svn-id: https://svn.kapsi.fi/jpa/nanopb@975 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-09-12 | Tests for callback fields | Petteri Aimonen | 7 | -3/+109 | |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@974 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-09-01 | Python 2.6 compatibility for the generator | Petteri Aimonen | 1 | -4/+4 | |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@973 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-08-24 | Cyclic messages not supported - thanks to Josh for pointing this out. | Petteri Aimonen | 1 | -0/+1 | |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@972 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-08-24 | Make fuzz test runnable again :) | Petteri Aimonen | 1 | -1/+4 | |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@971 e3a754e5-d11d-0410-8d38-ebb782a927b9 | |||||
2011-08-24 | Generator bugfixes | Petteri Aimonen | 1 | -24/+46 | |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@970 e3a754e5-d11d-0410-8d38-ebb782a927b9 |