- Apr 05, 2013
-
-
Petteri Aimonen authored
Avoids unnecessary initialization & unnecessary scan of the pb_field_t array. Runtime on Cortex-M3 -5%, code size +2%. Could need some more testing with random field orders. Have to write a tool to randomize fields in a message.
-
- Apr 02, 2013
-
-
Petteri Aimonen authored
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
-
Petteri Aimonen authored
NOTE: This change breaks backwards-compatibility by default. If you have old callback functions, you can define PB_OLD_CALLBACK_STYLE to retain the old behaviour. If you want to convert your old callbacks to new signature, you need to do the following: 1) Change decode callback argument to void **arg and encode callback argument to void * const *arg. 2) Change any reference to arg into *arg. The rationale for making the new behaviour the default is that it simplifies the common case of "allocate some memory in decode callback". Update issue 69 Status: FixedInGit
-
- Mar 13, 2013
-
-
Petteri Aimonen authored
Update issue 67 Status: FixedInGit
-
Petteri Aimonen authored
Update issue 66 Status: FixedInGit
-
- Mar 09, 2013
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
This allows replacing the C99 standard include file names with a single system-specific file. It should provide all the necessary system functions (typedefs, memset, memcpy, strlen). Update issue 62 Status: FixedInGit
-
Petteri Aimonen authored
This avoids a name clash when compiling as Linux kernel module. Update issue 60 Status: FixedInGit
-
Petteri Aimonen authored
Update issue 7 Status: FixedInGit
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
Petteri Aimonen authored
Update issue 12 Still needs documentation.
-
Petteri Aimonen authored
pb_field_next() would access past the fields array.
-
Petteri Aimonen authored
-
Petteri Aimonen authored
Enable -fstack-protector-all to detect any stack smashing bugs. Also use test_decode3 for maximal vulnerable surface.
-
Petteri Aimonen authored
-
Petteri Aimonen authored
Note: the bug only applies to empty message types. Empty messages of non-empty message types are not affected. Update issue 65 Status: FixedInGit
-
- Mar 06, 2013
-
-
Petteri Aimonen authored
Update issue 64 Status: FixedInGit
-
- Mar 04, 2013
-
-
Petteri Aimonen authored
This suits complex projects, where there are multiple interdependent .proto files in various directories. Patch by Michael Haberler.
-
- Mar 02, 2013
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
- Feb 28, 2013
-
-
Petteri Aimonen authored
Patch courtesy of Michael Haberler.
-
- Feb 22, 2013
-
-
Pavel Ilin authored
-
- Feb 21, 2013
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
This way the .pb.h will remain cleaner and easier to read.
-
- Feb 20, 2013
-
-
Petteri Aimonen authored
Also clean up the logic so that it is easier to implement more allocation types in the future. Update issue 53 Status: FixedInGit
-
Petteri Aimonen authored
This is a more logical name in parallel with PB_HTYPE_REQUIRED and PB_HTYPE_OPTIONAL. Warning: This breaks backwards-compatibility of generated .pb.c files. You will have to regenerate the files and recompile.
-
- Feb 16, 2013
-
-
Petteri Aimonen authored
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
-
- Feb 13, 2013
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
- Feb 11, 2013
-
-
Petteri Aimonen authored
This is a bit bloated gitignore file. Having binaries in a separate build directory would be cleaner, but I don't bother to make that change now.
-
Petteri Aimonen authored
See issue #57.
-
Petteri Aimonen authored
-
- Feb 07, 2013
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
Error messages were not propagated correctly with PB_HTYPE_ARRAY. Error status (boolean return value) was correct. Update issue 56 Status: FixedInGit
-
Petteri Aimonen authored
Update issue 54 Status: FixedInGit
-
Petteri Aimonen authored
Update issue 50 Status: FixedInGit
-
Petteri Aimonen authored
-