Lines Matching refs:_name
67 self._name = name
84 return self._name
89 name = "%s_%s" % (self._name, entry.Name())
107 filep.write("/* Tag definition for %s */\n" % self._name)
108 filep.write("enum %s_ {\n" % self._name.lower())
111 filep.write(" %s_MAX_TAGS\n" % (self._name.upper()))
115 filep.write("struct %s;\n" % self._name)
118 filep.write("/* Structure declaration for %s */\n" % self._name)
119 filep.write("struct %s_access_ {\n" % self._name)
128 filep.write("struct %s {\n" % self._name)
129 filep.write(" struct %s_access_ *base;\n\n" % self._name)
150 % {"name": self._name}
162 filep.write("/* --- %s done --- */\n\n" % self._name)
170 % (self._name)
177 % {"name": self._name}
202 % {"name": self._name}
238 % {"name": self._name}
251 % {"name": self._name}
269 % {"name": self._name}
304 % {"name": self._name}
348 % {"name": self._name}
358 % {"name": self._name}
403 % {"name": self._name}
421 % {"name": self._name}
428 self._name = name
465 return self._name
480 "around line %d" % (self._name, self.LineCount())
485 "around line %d" % (self._name, self.LineCount())
490 "around line %d" % (self._name, self.LineCount())
498 "name": self._name,
517 return "%s_%s_get" % (self._struct.Name(), self._name)
538 return "%s_%s_assign" % (self._struct.Name(), self._name)
541 return "%s_%s_add" % (self._struct.Name(), self._name)
575 def CodeFree(_name): argument
622 dcl = ["ev_uint8_t %s_data[%s];" % (self._name, self._length)]
627 name = self._name
642 name = self._name
679 % (structname, self._name, structname, self._name),
687 % (name, self._name, name, self._name)
695 "around line %d" % (self._name, self.LineCount())
751 dcl = ["%s %s_data;" % (self._ctype, self._name)]
756 code = ["%s->%s_data = 0;" % (name, self._name)]
860 code = ["%s->%s_data = NULL;" % (name, self._name)]
865 "if (%s->%s_data != NULL)" % (name, self._name),
866 " free (%s->%s_data);" % (name, self._name),
872 dcl = ["char *%s_data;" % self._name]
935 name = self._name
1040 code = ["%s->%s_data = NULL;" % (name, self._name)]
1045 "if (%s->%s_data != NULL)" % (name, self._name),
1046 " %s_free(%s->%s_data);" % (self._refname, name, self._name),
1052 dcl = ["%s %s_data;" % (self._ctype, self._name)]
1091 name = self._name
1112 name = self._name
1166 "%s->%s_data = NULL;" % (name, self._name),
1167 "%s->%s_length = 0;" % (name, self._name),
1173 "if (%s->%s_data != NULL)" % (name, self._name),
1174 " free(%s->%s_data);" % (name, self._name),
1181 "ev_uint8_t *%s_data;" % self._name,
1182 "ev_uint32_t %s_length;" % self._name,
1193 super(EntryArray, self).__init__(entry._type, entry._name, entry._tag)
1437 "%s->%s_data = NULL;" % (name, self._name),
1438 "%s->%s_length = 0;" % (name, self._name),
1439 "%s->%s_num_allocated = 0;" % (name, self._name),
1455 "%s *%s_data;" % (self._ctype, self._name),
1456 "int %s_length;" % self._name,
1457 "int %s_num_allocated;" % self._name,