Petteri Aimonen
d3ed0744d0
Extreme negative integer constants are a bit nasty to define in C, just avoid the trouble in tests for now.
2014-02-05 17:56:37 +02:00
Petteri Aimonen
879860be19
Add coments to places where STATIC_ASSERT is used.
...
Update issue 96
Status: FixedInGit
2014-02-04 20:34:57 +02:00
Petteri Aimonen
a2f8112166
Add proper suffixes for integer default values.
...
Update issue 102
Status: FixedInGit
2014-02-04 20:24:44 +02:00
Petteri Aimonen
5efeb392e0
Add strict-aliasing GCC warnings for core
2014-02-04 20:11:52 +02:00
Petteri Aimonen
a46ed9f475
Fix problem with callback-type fields (issue #99 ).
2014-01-03 11:17:39 +02:00
Petteri Aimonen
843fc4b11a
Setting version to 0.2.6-dev
2014-01-01 11:44:47 +02:00
Petteri Aimonen
906c8283b5
Publishing nanopb-0.2.5
nanopb-0.2.5
2014-01-01 11:20:54 +02:00
Petteri Aimonen
4546bb92dc
Fix Makefiles for the examples
...
The default rules for make were being selected before our own rules
and the .pb.c was not being built.
2014-01-01 11:20:54 +02:00
Petteri Aimonen
18e71bbfe2
Fix bundled protoc detection in scons script
2013-12-29 22:08:13 +02:00
Petteri Aimonen
585cd0356e
And same fixes on Mac also..
2013-12-29 21:47:38 +02:00
Petteri Aimonen
bb51ee655b
Make the Mac OS X package a .zip instead
2013-12-29 21:43:22 +02:00
Petteri Aimonen
125b49bf24
Fix spaces in paths on Windows also
2013-12-29 21:36:06 +02:00
Petteri Aimonen
da8210b947
Fix handling spaces in directory name
2013-12-29 21:16:38 +02:00
Petteri Aimonen
10ef575d46
Fix build on Windows
2013-12-29 20:53:39 +02:00
Petteri Aimonen
7c9a8a132b
Fix protoc-gen-nanopb when the path contains spaces
2013-12-29 20:48:30 +02:00
Petteri Aimonen
ae7b9a3bd3
Fix path change: compat/ -> extra/
2013-12-29 20:41:36 +02:00
Petteri Aimonen
156139f112
README updates
2013-12-29 20:31:02 +02:00
Petteri Aimonen
26f7341094
Include platform name in also the directory name in binary pkgs
2013-12-29 20:26:59 +02:00
Petteri Aimonen
2b334015af
Add packaging script for Mac, add platform name to packages.
2013-12-29 20:26:58 +02:00
Petteri Aimonen
435ccbfdf7
Fixes for pyinstaller
2013-12-29 20:26:58 +02:00
Petteri Aimonen
b1cb035373
Small fix for previous
2013-12-29 20:26:58 +02:00
Petteri Aimonen
6d0e0695d0
Check for supported GCC CCFLAGS when building tests.
2013-12-29 20:26:58 +02:00
Petteri Aimonen
dde71cb426
Make generator print errors to stderr.
...
Otherwise they won't be visible when run as a protoc plugin.
2013-12-29 20:26:58 +02:00
Petteri Aimonen
1fc90ab4c4
Add a SCons tool for nanopb protos.
...
This tool script is useful both for building the tests and also for use in other applications.
2013-12-29 20:26:58 +02:00
Petteri Aimonen
440a53f859
Fix protoc-gen-nanopb in linux package
2013-12-29 20:26:58 +02:00
Petteri Aimonen
3bdbd4dc48
Include libprotoc
2013-12-29 20:26:58 +02:00
Petteri Aimonen
8be8b7e41a
Linux archive
2013-12-29 20:26:58 +02:00
Petteri Aimonen
94422ad456
Also include the manifest for MSVCR90.DLL
2013-12-29 20:26:58 +02:00
Petteri Aimonen
1d42f72f40
Include MSVCR90.DLL also.
2013-12-29 20:26:58 +02:00
Petteri Aimonen
2abd27c91c
Include Visual C++ runtime in the Windows package.
2013-12-29 20:26:58 +02:00
Petteri Aimonen
6e08773153
README updates
2013-12-29 20:26:58 +02:00
Petteri Aimonen
d7cadaa46f
Windows build fixes
2013-12-29 20:26:57 +02:00
Petteri Aimonen
d344bda28a
Fix protoc plugin path
2013-12-29 20:26:57 +02:00
Petteri Aimonen
05e2dc20f3
Actually no, it was a portability hassle
2013-12-29 20:26:57 +02:00
Petteri Aimonen
c61660b3ea
Makefile tuning
2013-12-29 20:26:57 +02:00
Petteri Aimonen
45c1a32e50
Rework the Makefiles to be compatible with binary packages.
2013-12-29 20:26:57 +02:00
Petteri Aimonen
ef31774cd9
Moving files around
...
Renamed READMEs to README.txt to be more friendly for Windows users.
2013-12-29 20:26:57 +02:00
Petteri Aimonen
480b39cc0a
Package as .zip, convert linebreaks
2013-12-29 20:26:57 +02:00
Petteri Aimonen
ec517e2108
Add build script for windows package
2013-12-29 20:26:57 +02:00
Petteri Aimonen
8c2dda67a1
Add descriptor.proto to repository to avoid messing with protoc include path.
2013-12-29 20:26:57 +02:00
Petteri Aimonen
58b3a22d6d
Add script for making linux binary package
2013-12-29 20:26:57 +02:00
Petteri Aimonen
356535da9b
Move the generator .proto files to a subdir, and get rid of precompiled versions.
2013-12-29 20:26:57 +02:00
Petteri Aimonen
f4146edf01
Bring alltypes_pointer testcase up to date
2013-12-29 18:44:58 +02:00
Petteri Aimonen
8da15d8b80
Improve alltypes_pointer test case
2013-12-29 18:35:57 +02:00
Petteri Aimonen
bc4ded3b43
Fix missing error messages in pb_encode.c
2013-12-29 18:35:57 +02:00
Petteri Aimonen
ef07635e35
Rename encode_static_field -> encode_basic_field.
2013-12-29 18:35:57 +02:00
Petteri Aimonen
25516b0591
Organize allocation logic in generator, add pb_bytes_ptr_t.
...
Allocation decision is now made before the field data type is decided.
This way the data type decisions can more cleanly account for the allocation
type, i.e. FT_DEFAULT logic etc.
Added pb_bytes_ptr_t for pointer-allocated bytes-fields. There is no point
generating separate structs for these, as they would all be of the same type.
2013-12-29 18:35:57 +02:00
Petteri Aimonen
414e637867
Const-correctness and small cleanup.
2013-12-29 18:35:57 +02:00
Martin Donath
4ae3b2e566
Generating and encoding messages with dynamic allocaiton
2013-12-29 18:35:57 +02:00
Petteri Aimonen
4f37c083d5
Negative int32 values take 10 bytes now.
2013-12-22 23:24:02 +02:00