示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 def __init__(self, input=None, output=None, defsoutput=None):
     Scanner.__init__(self, input, output, defsoutput)
     self.initnamespaces()
     self.silent = 0
     self.debug = 0
示例#4
0
 def __init__(self, input=None, output=None, defsoutput=None):
     Scanner.__init__(self, input, output, defsoutput)
     self.initnamespaces()
     self.silent = 0
     self.debug = 0