Lines Matching refs:outFile
340 self.outFile = None
379 self.outFile = open(self.genOpts.filename, 'w')
381 self.outFile = sys.stdout
386 self.outFile.flush()
387 if (self.outFile != sys.stdout and self.outFile != sys.stderr):
388 self.outFile.close()
498 write('', file=self.outFile)
507 write('#ifndef', headerSym, file=self.outFile)
508 write('#define', headerSym, '1', file=self.outFile)
510 write('#ifdef __cplusplus', file=self.outFile)
511 write('extern "C" {', file=self.outFile)
512 write('#endif', file=self.outFile)
526 write(s, file=self.outFile)
531 write('/* Generated C header for:', file=self.outFile)
532 write(' * API:', genOpts.apiname, file=self.outFile)
534 write(' * Profile:', genOpts.profile, file=self.outFile)
535 write(' * Versions considered:', genOpts.versions, file=self.outFile)
536 write(' * Versions emitted:', genOpts.emitversions, file=self.outFile)
537 write(' * Default extensions included:', genOpts.defaultExtensions, file=self.outFile)
538 write(' * Additional extensions included:', genOpts.addExtensions, file=self.outFile)
539 write(' * Extensions removed:', genOpts.removeExtensions, file=self.outFile)
540 write(' */', file=self.outFile)
545 write('#ifdef __cplusplus', file=self.outFile)
546 write('}', file=self.outFile)
547 write('#endif', file=self.outFile)
550 write('#endif', file=self.outFile)
570 write('#ifndef', self.featureName, file=self.outFile)
571 write('#define', self.featureName, '1', file=self.outFile)
573 write(self.typeBody, end='', file=self.outFile)
578 write('#ifdef', self.featureExtraProtect, file=self.outFile)
580 write(self.enumBody, end='', file=self.outFile)
582 write(self.cmdPointerBody, end='', file=self.outFile)
601 write(prefix + self.cmdBody + suffix, end='', file=self.outFile)
603 write('#endif /*', self.featureExtraProtect, '*/', file=self.outFile)
605 write('#endif /*', self.featureName, '*/', file=self.outFile)