summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-09-26Add documentation link to readmePetteri Aimonen1-1/+2
2015-09-26Fine-tune the readmePetteri Aimonen1-6/+11
2015-09-26Clean up the python2/python3 string type handlingPetteri Aimonen1-10/+9
2015-09-26Merge pull request #170 from kylemanna/travis-ciPetteri Aimonen1-0/+54
Add Travis CI Support
2015-09-26Merge pull request #169 from kylemanna/python3Petteri Aimonen3-51/+67
Add proper Python3 support to the generator
2015-09-26Setting version to 0.3.5-devPetteri Aimonen2-2/+2
2015-09-26Publishing nanopb-0.3.4Petteri Aimonen3-3/+4
2015-09-24Add initialization to examples/simplePetteri Aimonen2-6/+12
2015-09-22Merge pull request #171 from kylemanna/miscPetteri Aimonen1-1/+2
decode: Fix compiler issue with gcc-5
2015-09-21decode: Fix compiler issue with gcc-5Kyle Manna1-1/+2
* gcc 5.0 and 5.1 appear to take issue with this line and generates the following error: /home/nitro/tmp/nanopb/pb_decode.c: In function ‘pb_decode_noinit’: /home/nitro/tmp/nanopb/pb_decode.c:889:60: error: conversion to ‘uint8_t {aka unsigned char}’ from ‘int’ may alter its value [-Werror=conversion] fields_seen[iter.required_field_index >> 3] |= (uint8_t)(1 << (iter.required_field_index & 7)); ^ * This seems like a compiler bug, but this workaround is harmless.
2015-09-21travis-ci: Use protobuf v3 as it adds python3Kyle Manna1-5/+3
* Still in testing currently.
2015-09-21travis-ci: Build C/C++/Python matrixKyle Manna1-10/+38
* Test a number of C compilers * Travis CI can't handle three languages (C, C++, Python) * Add support for swapping python2/3 binaries * Scons has made no attempts to support python3 yet: * Build the matrix manually * Scons doesn't inherit $CC/$CXX from parent environement, so pass compiler flags directly
2015-09-21generator: Use search $PATH for pythonKyle Manna1-1/+1
* Search $PATH for the python binary so that this works better with things like virtualenv as used on Travis CI
2015-09-20travis-ci: Initial working buildKyle Manna1-0/+28
* Initial working build for Travis CI build system.
2015-09-20generator: Fix strange unicode/str issue in python2Kyle Manna1-1/+8
* Work around this by checking the appropriate class for the given * environment.
2015-09-20generator: Attempt to simplify the str/unicode madnessKyle Manna1-0/+2
* This is a shot in the dark.
2015-09-20generator: Strings are utf-8 by default in python3Kyle Manna1-4/+2
* Not sure how to handle this case in python2, seems to work * Python 3 doesn't need this since all strings are utf-8
2015-09-20generator: Remove cmp() to work with Python3Kyle Manna1-5/+2
* Python3 ignores cmp() and __cmp__() and only needs __lt__() for sorting. Delete and update as appropriate. * Ref: https://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons
2015-09-20generator: More exhaustive field size checkingKyle Manna1-15/+36
Create a FieldMaxSize class that: * Accumlates all C assertions * Handles the checking of the longest simple field * Also python3 doesn't support max(None)
2015-09-20generator: Use python2/3 binary read/write methodKyle Manna1-3/+4
* This works with python2 and python3
2015-09-20generator: Run python's 2to3 converterKyle Manna1-10/+11
* Invoked with `2to3 -w nanopb_generator.py` * No other changes.
2015-09-20cmake: Don't explicitly look for python2Kyle Manna1-12/+2
* Use the system python binary and make sure the generator works with both instead.
2015-09-20generator: Don't force python2Kyle Manna1-2/+1
Python2 is being phased out of the default python interpreter. Arch Linux has moved some time ago and upcoming Debian realeases will follow. My distro, Arch, doesn't have a python2-protobuf version, but does have a python3 version. With a python 2 & 3 compatible generator the exact interpreter can be ignored and can use the system default as most users expect. Update issue #155
2015-09-20Update changelogPetteri Aimonen1-1/+9
2015-09-20Add syntax specification to .proto files (issue #167)Petteri Aimonen33-13/+80
Eliminates a warning on protoc 3.0.
2015-09-13Fix maximum encoded size for negative enums (issue #166).Petteri Aimonen4-1/+87
2015-09-12Make the generator understand included files (issue #165).Petteri Aimonen6-36/+70
This will allow message sizes and enum options to be available across the include files. Currently searching for .options files for included files may not work for all path combinations, this is related to issue #116. Should probably make a pull request to protoc about that.
2015-09-12Refactor the generator logic into a ProtoFile class.Petteri Aimonen1-285/+297
In preparation for multi-file support in generator. No functional changes yet.
2015-09-12Expand the multiple_files test case to include oneofs and enumsPetteri Aimonen5-14/+48
2015-09-12Fix handling of unsigned 8- or 16-bit enums.Petteri Aimonen2-2/+18
Previously unsigned enums would throw errors on decoding if the value went outside the signed range (issue #164). Currently only helps for enums defined within the same file, but solving issue #165 will make it work for multiple files also.
2015-09-12Add testcase for issue #164Petteri Aimonen3-0/+168
2015-09-12Add packed_enum option to generator.Petteri Aimonen2-1/+10
This can be generally useful for saving RAM, but also makes it easier to test for issue #164.
2015-07-11Add note about running tests on Mac OS XPetteri Aimonen1-1/+4
2015-07-01Add link to forum to the readmePetteri Aimonen1-0/+1
2015-06-17Merge pull request #157 from ivankravets/patch-1Petteri Aimonen1-6/+7
Specify additional fields for @PlatformIO Registry
2015-06-17Specify additional fields for @PlatformIO RegistryIvan Kravets1-6/+7
2015-06-16Merge pull request #156 from ncolomer/masterPetteri Aimonen1-0/+21
PlatformIO Library Registry manifest file
2015-06-16PlatformIO Library Registry manifest fileNicolas Colomer1-0/+21
2015-05-07Add download link to readmePetteri Aimonen1-1/+1
2015-04-28Fix for previous (issue #155)Petteri Aimonen1-1/+1
2015-04-28Prefer python2 in generator/protoc-gen-nanopb.Petteri Aimonen1-0/+1
Update issue 155 Status: FixedInGit
2015-04-10Setting version to 0.3.4-devPetteri Aimonen2-2/+2
2015-04-10Publishing nanopb-0.3.3Petteri Aimonen3-3/+5
2015-04-08Switch to .tar.gz format for Mac OS X packages.Petteri Aimonen1-1/+1
Update issue 154 Status: FixedInGit
2015-04-08Fix problem with plugin options on Python 2.7.2 and older.Petteri Aimonen1-1/+8
Update issue 153 Status: FixedInGit
2015-04-03Update changelogPetteri Aimonen1-0/+12
2015-04-03Clear callbacks for union fields.Petteri Aimonen1-0/+3
Update issue 148 Status: FixedInGit
2015-04-03Fix for test case build rulesPetteri Aimonen1-0/+1
2015-04-03Improve comment support in .options files.Petteri Aimonen5-2/+30
Update issue 145 Status: FixedInGit
2015-04-03Always define enum long names so that cross-file references work.Petteri Aimonen4-0/+29
Update issue 118 Status: FixedInGit