Lines Matching refs:naming_style
192 naming_style = NamingStyle() variable in Globals
434 result += 'typedef enum %s {' % Globals.naming_style.enum_name(self.names)
453 enum_value = " %s = %d%s" % (Globals.naming_style.enum_entry(name), value, comma)
465 result += ' %s;' % Globals.naming_style.type_name(self.names)
472 Globals.naming_style.define_name('_%s_MIN' % self.names),
473 Globals.naming_style.enum_entry(sorted_values[0][0]))
475 Globals.naming_style.define_name('_%s_MAX' % self.names),
476 Globals.naming_style.enum_entry(sorted_values[-1][0]))
478 Globals.naming_style.define_name('_%s_ARRAYSIZE' % self.names),
479 Globals.naming_style.type_name(self.names),
480 Globals.naming_style.enum_entry(sorted_values[-1][0]))
490 Globals.naming_style.func_name('%s_name' % self.names),
491 Globals.naming_style.type_name(self.names))
500 Globals.naming_style.func_name('%s_name' % self.names),
501 Globals.naming_style.type_name(self.names))
509 Globals.naming_style.enum_entry(enumname),
510 Globals.naming_style.enum_entry(strval))
684 self.ctype = Globals.naming_style.bytes_type(self.struct_name, self.name)
708 var_name = Globals.naming_style.var_name(self.name)
709 …type_name = Globals.naming_style.type_name(self.ctype) if isinstance(self.ctype, Names) else self.…
728 … result += ' struct %s *%s;' % (Globals.naming_style.struct_name(self.ctype), var_name)
754 …result = 'typedef PB_BYTES_ARRAY_T(%d) %s;\n' % (self.max_size, Globals.naming_style.var_name(self…
777 inner_init = Globals.naming_style.define_name('%s_init_zero' % self.ctype)
779 inner_init = Globals.naming_style.define_name('%s_init_default' % self.ctype)
788 inner_init = '_%s_MIN' % Globals.naming_style.define_name(self.ctype)
862 identifier = Globals.naming_style.define_name('%s_%s_tag' % (self.struct_name, self.name))
869 name = Globals.naming_style.var_name(self.name)
876 Globals.naming_style.var_name(self.union_name),
877 Globals.naming_style.var_name(self.name),
878 Globals.naming_style.var_name(self.union_name) + '.' +
879 Globals.naming_style.var_name(self.name))
882 Globals.naming_style.var_name(self.union_name),
883 Globals.naming_style.var_name(self.name),
884 Globals.naming_style.var_name(self.name))
1080 identifier = Globals.naming_style.define_name('%s_tag' % (self.fullname))
1091 (Globals.naming_style.var_name(self.fullname), str(self).strip()))
1104 … result += 'const pb_extension_type_t %s = {\n' % Globals.naming_style.var_name(self.fullname)
1107 result += ' &%s_msg\n' % Globals.naming_style.type_name(self.msg.name)
1149 result += ' pb_callback_t cb_' + Globals.naming_style.var_name(self.name) + ';\n'
1151 result += ' pb_size_t which_' + Globals.naming_style.var_name(self.name) + ";\n"
1158 result += ' } ' + Globals.naming_style.var_name(self.name) + ';'
1323 result += 'typedef struct %s {' % Globals.naming_style.struct_name(self.name)
1344 result += ' %s;' % Globals.naming_style.type_name(self.name)
1414 Globals.naming_style.define_name(self.name),
1425 Globals.naming_style.define_name(self.name),
1428 result += "#define %s_CALLBACK NULL\n" % Globals.naming_style.define_name(self.name)
1434 Globals.naming_style.define_name(self.name),
1437 result += '#define %s_DEFAULT NULL\n' % Globals.naming_style.define_name(self.name)
1443 Globals.naming_style.type_name(self.name),
1444 Globals.naming_style.var_name(field.union_name),
1445 Globals.naming_style.var_name(field.name),
1446 Globals.naming_style.type_name(field.ctype)
1450 Globals.naming_style.type_name(self.name),
1451 Globals.naming_style.var_name(field.name),
1452 Globals.naming_style.type_name(field.ctype)
1464 Globals.naming_style.type_name(self.name),
1465 Globals.naming_style.var_name(field.union_name),
1466 Globals.naming_style.var_name(field.name),
1467 Globals.naming_style.type_name(field.ctype)
1471 Globals.naming_style.type_name(self.name),
1472 Globals.naming_style.var_name(field.name),
1473 Globals.naming_style.type_name(field.ctype)
1495 Globals.naming_style.define_name(self.name),
1496 Globals.naming_style.type_name(self.name),
1951 identifier = Globals.naming_style.define_name('%s_init_default' % msg.name)
1954 identifier = Globals.naming_style.define_name('%s_init_zero' % msg.name)
1970 … yield 'extern const pb_msgdesc_t %s_msg;\n' % Globals.naming_style.type_name(msg.name)
1976 Globals.naming_style.define_name('%s_fields' % msg.name),
1977 Globals.naming_style.type_name(msg.name))
2013 Globals.naming_style.define_name(identifier), msize))
2324 Globals.naming_style = NamingStyleC()