Lines Matching refs:outFile
339 self.outFile = None
378 self.outFile = open(self.genOpts.filename, 'w')
380 self.outFile = sys.stdout
385 self.outFile.flush()
386 if (self.outFile != sys.stdout and self.outFile != sys.stderr):
387 self.outFile.close()
497 write('', file=self.outFile)
506 write('#ifndef', headerSym, file=self.outFile)
507 write('#define', headerSym, '1', file=self.outFile)
509 write('#ifdef __cplusplus', file=self.outFile)
510 write('extern "C" {', file=self.outFile)
511 write('#endif', file=self.outFile)
517 write(s, file=self.outFile)
522 write('/* Generated C header for:', file=self.outFile)
523 write(' * API:', genOpts.apiname, file=self.outFile)
525 write(' * Profile:', genOpts.profile, file=self.outFile)
526 write(' * Versions considered:', genOpts.versions, file=self.outFile)
527 write(' * Versions emitted:', genOpts.emitversions, file=self.outFile)
528 write(' * Default extensions included:', genOpts.defaultExtensions, file=self.outFile)
529 write(' * Additional extensions included:', genOpts.addExtensions, file=self.outFile)
530 write(' * Extensions removed:', genOpts.removeExtensions, file=self.outFile)
531 write(' */', file=self.outFile)
536 write('#ifdef __cplusplus', file=self.outFile)
537 write('}', file=self.outFile)
538 write('#endif', file=self.outFile)
541 write('#endif', file=self.outFile)
561 write('#ifndef', self.featureName, file=self.outFile)
562 write('#define', self.featureName, '1', file=self.outFile)
564 write(self.typeBody, end='', file=self.outFile)
569 write('#ifdef', self.featureExtraProtect, file=self.outFile)
571 write(self.enumBody, end='', file=self.outFile)
573 write(self.cmdPointerBody, end='', file=self.outFile)
592 write(prefix + self.cmdBody + suffix, end='', file=self.outFile)
594 write('#endif /*', self.featureExtraProtect, '*/', file=self.outFile)
596 write('#endif /*', self.featureName, '*/', file=self.outFile)