diff options
author | Petteri Aimonen <jpa@npb.mail.kapsi.fi> | 2011-08-23 16:16:33 +0000 |
---|---|---|
committer | Petteri Aimonen <jpa@npb.mail.kapsi.fi> | 2011-08-23 16:16:33 +0000 |
commit | 64ac18c8848d3071a16065c84fca3b5e7210ce95 (patch) | |
tree | af3f7a5d759e51ac6ada8d95ea6e946709fb6bab /generator | |
parent | 9966a8c9b680ada47b6bd5fe96405c0abaf773e4 (diff) |
Changed autogenerated file naming from foo.c to foo.pb.c
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@965 e3a754e5-d11d-0410-8d38-ebb782a927b9
Diffstat (limited to 'generator')
-rw-r--r-- | generator/nanopb_generator.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py index 2826851..f09be34 100644 --- a/generator/nanopb_generator.py +++ b/generator/nanopb_generator.py @@ -382,7 +382,7 @@ if __name__ == '__main__': print "Usage: " + sys.argv[0] + " file.pb" print "where file.pb has been compiled from .proto by:" print "protoc -ofile.pb file.proto" - print "Output fill be written to file.h and file.c" + print "Output fill be written to file.pb.h and file.pb.c" sys.exit(1) data = open(sys.argv[1]).read() @@ -390,8 +390,8 @@ if __name__ == '__main__': enums, messages = parse_file(fdesc.file[0]) noext = os.path.splitext(sys.argv[1])[0] - headername = noext + '.h' - sourcename = noext + '.c' + headername = noext + '.pb.h' + sourcename = noext + '.pb.c' headerbasename = os.path.basename(headername) print "Writing to " + headername + " and " + sourcename |