mlot / nanopb

Automatically exported from code.google.com/p/nanopb
zlib License
0 stars 0 forks source link

simple output name support #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently at least on visual micro (maybe same limitation in arduino ide) you 
cannot use names what contains double dot(e.g myproto.pb.c). So it would be 
useful if there is --simple-name or something what allows say that output file 
must be in format myproto.c

Original issue reported on code.google.com by tapio.ha...@gmail.com on 27 Jun 2014 at 7:40

GoogleCodeExporter commented 9 years ago
I'll add this by modifying the current -e option. Then it will give:

    -e .pb  =>  foobar.pb.c (default)
    -e _pb  =>  foobar_pb.c
    -e ''   =>  foobar.c

(With protoc, use "--nanopb_out=-e '':." including the quotes.)

Original comment by Petteri.Aimonen on 20 Jul 2014 at 11:29

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 3cf9668c7555.

Original comment by Petteri.Aimonen on 20 Jul 2014 at 11:57

GoogleCodeExporter commented 9 years ago
Fix released in nanopb 0.2.9.

Original comment by Petteri.Aimonen on 9 Aug 2014 at 7:28