Lines Matching refs:_name
54 self._name = name
70 return self._name
75 name = "%s_%s" % (self._name, entry.Name())
91 print >>file, '/* Tag definition for %s */' % self._name
92 print >>file, 'enum %s_ {' % self._name.lower()
96 print >>file, ' %s_MAX_TAGS' % (self._name.upper())
100 print >>file, 'struct %s;' % self._name
103 print >>file, '/* Structure declaration for %s */' % self._name
104 print >>file, 'struct %s_access_ {' % self._name
115 print >>file, 'struct %s {' % self._name
116 print >>file, ' struct %s_access_ *base;\n' % self._name
136 struct %(name)s *);""" % { 'name' : self._name }
149 print >>file, '/* --- %s done --- */\n' % self._name
154 ' */\n') % self._name
158 { 'name' : self._name }
179 ' tmp->base = &%(name)s_base__;\n') % { 'name' : self._name }
209 ) % { 'name' : self._name }
219 ) % { 'name' : self._name }
231 '{') % { 'name' : self._name }
258 ) % { 'name' : self._name }
283 ) % { 'name' : self._name }
293 '{' ) % { 'name' : self._name }
333 '}\n' ) % { 'name' : self._name }
346 '}\n' ) % { 'name' : self._name }
351 self._name = name
387 return self._name
402 'around line %d' % (self._name, self.LineCount()))
406 'around line %d' % (self._name, self.LineCount()))
410 'around line %d' % (self._name, self.LineCount()))
415 "name" : self._name,
435 return '%s_%s_get' % (self._struct.Name(), self._name)
458 return '%s_%s_assign' % (self._struct.Name(), self._name)
461 return '%s_%s_add' % (self._struct.Name(), self._name)
533 dcl = ['ev_uint8_t %s_data[%s];' % (self._name, self._length)]
538 name = self._name
552 name = self._name
587 structname, self._name, structname, self._name)]
593 name, self._name, name, self._name)]
600 'around line %d' % (self._name, self.LineCount()))
652 dcl = ['%s %s_data;' % (self._ctype, self._name)]
657 code = ['%s->%s_data = 0;' % (name, self._name)]
711 name = self._name
754 code = ['%s->%s_data = NULL;' % (name, self._name)]
758 code = ['if (%s->%s_data != NULL)' % (name, self._name),
759 ' free (%s->%s_data);' % (name, self._name)]
764 dcl = ['char *%s_data;' % self._name]
827 name = self._name
845 name = self._name
926 code = ['%s->%s_data = NULL;' % (name, self._name)]
930 code = ['if (%s->%s_data != NULL)' % (name, self._name),
932 self._refname, name, self._name)]
937 dcl = ['%s %s_data;' % (self._ctype, self._name)]
969 name = self._name
989 name = self._name
1041 code = ['%s->%s_data = NULL;' % (name, self._name),
1042 '%s->%s_length = 0;' % (name, self._name) ]
1046 code = ['if (%s->%s_data != NULL)' % (name, self._name),
1047 ' free(%s->%s_data);' % (name, self._name)]
1052 dcl = ['ev_uint8_t *%s_data;' % self._name,
1053 'ev_uint32_t %s_length;' % self._name]
1060 Entry.__init__(self, entry._type, entry._name, entry._tag)
1280 code = ['%s->%s_data = NULL;' % (name, self._name),
1281 '%s->%s_length = 0;' % (name, self._name),
1282 '%s->%s_num_allocated = 0;' % (name, self._name)]
1295 dcl = ['%s *%s_data;' % (self._ctype, self._name),
1296 'int %s_length;' % self._name,
1297 'int %s_num_allocated;' % self._name ]