Lines Matching refs:structname
397 def CodeClear(self, structname):
398 code = [ '%s->%s_set = 0;' % (structname, self.Name()) ]
402 def CodeComplete(self, structname):
406 code = [ 'if (!%s->%s_set)' % (structname, self.Name()),
511 def CodeClear(self, structname):
512 code = [ '%s->%s_set = 0;' % (structname, self.Name()),
514 structname, self._name, structname, self._name)]
599 def CodeClear(self, structname):
600 code = [ 'if (%s->%s_set == 1) {' % (structname, self.Name()),
601 ' free (%s->%s_data);' % (structname, self.Name()),
602 ' %s->%s_data = NULL;' % (structname, self.Name()),
603 ' %s->%s_set = 0;' % (structname, self.Name()),
691 def CodeComplete(self, structname):
694 structname, self.Name(),
695 self._refname, structname, self.Name()),
699 self._refname, structname, self.Name()),
723 def CodeClear(self, structname):
724 code = [ 'if (%s->%s_set == 1) {' % (structname, self.Name()),
726 self._refname, structname, self.Name()),
727 ' %s->%s_data = NULL;' % (structname, self.Name()),
728 ' %s->%s_set = 0;' % (structname, self.Name()),
828 def CodeClear(self, structname):
829 code = [ 'if (%s->%s_set == 1) {' % (structname, self.Name()),
830 ' free (%s->%s_data);' % (structname, self.Name()),
831 ' %s->%s_data = NULL;' % (structname, self.Name()),
832 ' %s->%s_length = 0;' % (structname, self.Name()),
833 ' %s->%s_set = 0;' % (structname, self.Name()),
955 def CodeComplete(self, structname):
960 code.append( 'if (%(structname)s->%(name)s_set)' % translate)
962 translate["structname"] = structname
965 for (i = 0; i < %(structname)s->%(name)s_length; ++i) {
966 if (%(refname)s_complete(%(structname)s->%(name)s_data[i]) == -1)
1002 def CodeClear(self, structname):
1003 code = [ 'if (%s->%s_set == 1) {' % (structname, self.Name()),
1006 structname, self.Name()),
1008 self._refname, structname, self.Name()),
1010 ' free(%s->%s_data);' % (structname, self.Name()),
1011 ' %s->%s_data = NULL;' % (structname, self.Name()),
1012 ' %s->%s_set = 0;' % (structname, self.Name()),
1013 ' %s->%s_length = 0;' % (structname, self.Name()),
1014 ' %s->%s_num_allocated = 0;' % (structname, self.Name()),