Home | History | Annotate | Download | only in generator

Lines Matching refs:extension

428         self.pbtype = 'EXTENSION'
470 '''Declaration of the extension type in the .pb.h file'''
472 msg = '/* Extension field %s was skipped because only "optional"\n' % self.fullname
473 msg +=' type of extension fields is currently supported. */\n'
479 '''Definition of the extension type in the .pb.c file'''
617 for extension in desc.extension:
618 yield names, extension
621 for extension in subdesc.extension:
622 yield subname, extension
647 for names, extension in iterate_extensions(fdesc, base_name):
648 field_options = get_nanopb_suboptions(extension, file_options, names)
650 extensions.append(ExtensionField(names, extension, field_options))
727 yield options.genformat % (noext + '.' + options.extension + '.h')
745 for extension in extensions:
746 yield extension.extension_decl()
758 for extension in extensions:
759 yield extension.tags()
962 optparser.add_option("-e", "--extension", dest="extension", metavar="EXTENSION", default="pb",
963 help="Set extension to use instead of 'pb' for generated files. [default: %default]")
1024 headername = noext + '.' + options.extension + '.h'
1025 sourcename = noext + '.' + options.extension + '.c'