Lines Matching refs:outFile
355 self.outFile = None
394 self.outFile = open(self.genOpts.filename, 'w')
396 self.outFile = sys.stdout
401 self.outFile.flush()
402 if (self.outFile != sys.stdout and self.outFile != sys.stderr):
403 self.outFile.close()
513 write('', file=self.outFile)
522 write('#ifndef', headerSym, file=self.outFile)
523 write('#define', headerSym, '1', file=self.outFile)
525 write('#ifdef __cplusplus', file=self.outFile)
526 write('extern "C" {', file=self.outFile)
527 write('#endif', file=self.outFile)
533 write(s, file=self.outFile)
538 write('/* Generated C header for:', file=self.outFile)
539 write(' * API:', genOpts.apiname, file=self.outFile)
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)
547 write(' */', file=self.outFile)
552 write('#ifdef __cplusplus', file=self.outFile)
553 write('}', file=self.outFile)
554 write('#endif', file=self.outFile)
557 write('#endif', file=self.outFile)
577 write('#ifndef', self.featureName, file=self.outFile)
578 write('#define', self.featureName, '1', file=self.outFile)
580 write(self.typeBody, end='', file=self.outFile)
585 write('#ifdef', self.featureExtraProtect, file=self.outFile)
587 write(self.enumBody, end='', file=self.outFile)
589 write(self.cmdPointerBody, end='', file=self.outFile)
592 write('#ifdef', self.genOpts.protectProtoStr, file=self.outFile)
593 write(self.cmdBody, end='', file=self.outFile)
595 write('#endif', file=self.outFile)
597 write('#endif /*', self.featureExtraProtect, '*/', file=self.outFile)
599 write('#endif /*', self.featureName, '*/', file=self.outFile)