Home | History | Annotate | Download | only in libevent

Lines Matching defs:_NAME

20 _NAME = "event_rpcgen.py"
48 self._name = name
64 return self._name
69 name = "%s_%s" % (self._name, entry.Name())
85 print >>file, '/* Tag definition for %s */' % self._name
86 print >>file, 'enum %s_ {' % self._name.lower()
90 print >>file, ' %s_MAX_TAGS' % (self._name.upper())
94 print >>file, 'struct %s;' % self._name
97 print >>file, '/* Structure declaration for %s */' % self._name
98 print >>file, 'struct %s_access_ {' % self._name
109 print >>file, 'struct %s {' % self._name
110 print >>file, ' struct %s_access_ *base;\n' % self._name
130 struct %(name)s *);""" % { 'name' : self._name }
143 print >>file, '/* --- %s done --- */\n' % self._name
148 ' */\n') % self._name
152 { 'name' : self._name }
173 ' tmp->base = &__%(name)s_base;\n') % { 'name' : self._name }
203 ) % { 'name' : self._name }
213 ) % { 'name' : self._name }
225 '{') % { 'name' : self._name }
252 ) % { 'name' : self._name }
277 ) % { 'name' : self._name }
287 '{' ) % { 'name' : self._name }
327 '}\n' ) % { 'name' : self._name }
340 '}\n' ) % { 'name' : self._name }
345 self._name = name
381 return self._name
396 'around line %d' % (self._name, self.LineCount()))
400 'around line %d' % (self._name, self.LineCount()))
404 'around line %d' % (self._name, self.LineCount()))
409 "name" : self._name,
429 return '%s_%s_get' % (self._struct.Name(), self._name)
452 return '%s_%s_assign' % (self._struct.Name(), self._name)
455 return '%s_%s_add' % (self._struct.Name(), self._name)
527 dcl = ['ev_uint8_t %s_data[%s];' % (self._name, self._length)]
532 name = self._name
546 name = self._name
581 structname, self._name, structname, self._name)]
587 name, self._name, name, self._name)]
594 'around line %d' % (self._name, self.LineCount()))
646 dcl = ['%s %s_data;' % (self._ctype, self._name)]
651 code = ['%s->%s_data = 0;' % (name, self._name)]
705 name = self._name
748 code = ['%s->%s_data = NULL;' % (name, self._name)]
752 code = ['if (%s->%s_data != NULL)' % (name, self._name),
753 ' free (%s->%s_data);' % (name, self._name)]
758 dcl = ['char *%s_data;' % self._name]
821 name = self._name
839 name = self._name
920 code = ['%s->%s_data = NULL;' % (name, self._name)]
924 code = ['if (%s->%s_data != NULL)' % (name, self._name),
926 self._refname, name, self._name)]
931 dcl = ['%s %s_data;' % (self._ctype, self._name)]
963 name = self._name
983 name = self._name
1035 code = ['%s->%s_data = NULL;' % (name, self._name),
1036 '%s->%s_length = 0;' % (name, self._name) ]
1040 code = ['if (%s->%s_data != NULL)' % (name, self._name),
1041 ' free(%s->%s_data);' % (name, self._name)]
1046 dcl = ['ev_uint8_t *%s_data;' % self._name,
1047 'ev_uint32_t %s_length;' % self._name]
1054 Entry.__init__(self, entry._type, entry._name, entry._tag)
1274 code = ['%s->%s_data = NULL;' % (name, self._name),
1275 '%s->%s_length = 0;' % (name, self._name),
1276 '%s->%s_num_allocated = 0;' % (name, self._name)]
1289 dcl = ['%s *%s_data;' % (self._ctype, self._name),
1290 'int %s_length;' % self._name,
1291 'int %s_num_allocated;' % self._name ]
1564 global _NAME
1574 ' */\n\n' ) % (name, _NAME, _VERSION)