Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
Add testcase for the same.
|
|
Update issue 89
Status: FixedInGit
|
|
|
|
|
|
Requires re-generation of files generated with dev_get_rid_of_ternary_operator.
|
|
Some compilers where unable to detect that the ternary operator
can be evaluated at the compile time. This commit does the evaluation
on the Python side, which should fix the problem.
The new .pb.c files are generated using PB_FIELD2() macro. The old
PB_FIELD() macro remains, so that previously generated files keep
working.
|
|
Will be used to implement issue 47.
For now, symlink nanopb_generator.py as protoc-gen-nanopb and
use protoc --nanopb_out=. to call it.
|
|
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
|
|
|
|
|
|
|
|
Testing is still needed. Also only 'optional' extension fields
are supported now, 'repeated' fields are not yet supported.
|
|
yet)
|
|
Also add note about the 'packed' message option being incompatible
with CPUs that do not support unaligned access.
Update issue 12
Status: FixedInGit
Update issue 77
Status: FixedInGit
|
|
Patch from Michael Haberler.
|
|
|
|
|
|
The arg field can be used to store the field presence from inside
the callback. Furthermore, having the has_ field for encoding callbacks
would be more annoying than useful.
Update issue 70
Status: FixedInGit
|
|
Update issue 66
Status: FixedInGit
|
|
|
|
Update issue 12
Still needs documentation.
|
|
Update issue 64
Status: FixedInGit
|
|
This suits complex projects, where there are multiple interdependent .proto files
in various directories. Patch by Michael Haberler.
|
|
|
|
|
|
Patch courtesy of Michael Haberler.
|
|
This way the .pb.h will remain cleaner and easier to read.
|
|
This has the following advantages:
1) Easier to modify pb_field_t encoding
2) Simpler generator logic
3) Tidier looking, easier to read .pb.c files
Update issue 58
Status: FixedInGit
|
|
|
|
Update issue 54
Status: FixedInGit
|
|
Update issue 50
Status: FixedInGit
|
|
This fixes problems when interoperating with Java.
Fix suggested by trepidacious:
https://groups.google.com/forum/#!topic/nanopb/hZgrj6h9OnY
|
|
This allows ignoring fields that are unnecessary or too large for an
embedded system using nanopb, while allowing them to remain in the .proto
for other platforms.
Update issue 51
Status: FixedInGit
|
|
Usage is:
message Foo
{
option (nanopb_msgopt).packed_struct = true;
...
}
Valid also in file scope.
Update issue 49
Status: FixedInGit
|
|
|
|
|
|
|
|
The __COUNTER__ macro (used for generating unique names) is at least supported
by gcc, clang and Visual Studio. With this change test_compiles.c is
compilable, since no more typedefs are redefined.
Compilers/Preprocessors not supporting __COUNTER__ error's are still possible
which are hopfully handled by the usage of __LINE__ in most sittuations.
Added unit test for the problem.
|
|
|
|
Modify test case to check that options.pb.o compiles.
Update issue 42
Status: FixedInGit
Update issue 43
Status: FixedInGit
|
|
|
|
|
|
tools/set_version.sh is used to update the values.
Update issue 36
Status: FixedInGit
|
|
Update issue 35
Status: FixedInGit
|
|
Update issue 38
Status: FixedInGit
|
|
Update issue 30
Status: FixedInGit
|
|
Options can now be defined on command line, file, message or in field
scope.
Update issue 12
Status: Started
|
|
|