Lines Matching refs:genOpts

361         self.genOpts = None
388 def beginFile(self, genOpts): argument
389 self.genOpts = genOpts
393 if (self.genOpts.filename != None):
394 self.outFile = open(self.genOpts.filename, 'w')
404 self.genOpts = None
472 pdecl = self.genOpts.apicall
491 pdecl += self.genOpts.apientry + text + tail
492 tdecl += '(' + self.genOpts.apientryp + 'PFN' + text.upper() + 'PROC' + tail + ')'
515 def beginFile(self, genOpts): argument
516 OutputGenerator.beginFile(self, genOpts)
520 if (genOpts.protectFile and self.genOpts.filename):
521 headerSym = '__' + re.sub('\.h', '_h_', os.path.basename(self.genOpts.filename))
531 if (genOpts.prefixText):
532 for s in genOpts.prefixText:
539 write(' * API:', genOpts.apiname, file=self.outFile)
540 if (genOpts.profile):
541 write(' * Profile:', genOpts.profile, file=self.outFile)
542 write(' * Versions considered:', genOpts.versions, file=self.outFile)
543 write(' * Versions emitted:', genOpts.emitversions, file=self.outFile)
544 write(' * Default extensions included:', genOpts.defaultExtensions, file=self.outFile)
545 write(' * Additional extensions included:', genOpts.addExtensions, file=self.outFile)
546 write(' * Extensions removed:', genOpts.removeExtensions, file=self.outFile)
555 if (self.genOpts.protectFile and self.genOpts.filename):
576 if (self.genOpts.protectFeature):
588 if (self.genOpts.genFuncPointers and self.cmdPointerBody != ''):
591 if (self.genOpts.protectProto):
592 write('#ifdef', self.genOpts.protectProtoStr, file=self.outFile)
594 if (self.genOpts.protectProto):
598 if (self.genOpts.protectFeature):
614 s += self.genOpts.apientry + noneStr(elem.tail)
639 if (self.genOpts.genFuncPointers):
689 self.genOpts = None
727 key = (fname, self.genOpts.apiname)
981 def apiGen(self, genOpts): argument
985 self.gen.logMsg('diag', ' Registry.apiGen file:', genOpts.filename,
986 'api:', genOpts.apiname,
987 'profile:', genOpts.profile)
990 self.genOpts = genOpts
995 regVersions = re.compile(self.genOpts.versions)
996 regEmitVersions = re.compile(self.genOpts.emitversions)
997 regAddExtensions = re.compile(self.genOpts.addExtensions)
998 regRemoveExtensions = re.compile(self.genOpts.removeExtensions)
1006 if (api == self.genOpts.apiname):
1044 if (self.genOpts.defaultExtensions and
1045 re.match(pat, self.genOpts.defaultExtensions)):
1077 if (self.genOpts.sortProcedure):
1078 self.genOpts.sortProcedure(features)
1092 self.requireAndRemoveFeatures(f.elem, self.genOpts.apiname, self.genOpts.profile)
1098 self.gen.beginFile(self.genOpts)