def repairarglist(self, functionname, arglist): # More trickery for constructors: if we're in a constructor # modify the return arg to return a pointer to the class name if self.in_class_defn \ and arglist == [('', self.namespaces[-1], 'ReturnMode')]: return [(self.namespaces[-1]+'_ptr', self.namespaces[-1], 'ReturnMode')] return Scanner.repairarglist(self, functionname, arglist)
def __init__(self, input=None, output=None, defsoutput=None): Scanner.__init__(self, input, output, defsoutput) self.initnamespaces() self.silent = 0 self.debug = 0