Lines Matching refs:write
27 def write( *args, **kwargs ): function
30 file.write( ' '.join([str(arg) for arg in args]) )
31 file.write( end )
374 write('ERROR:', *args, file=strfile)
376 write(strfile.getvalue(), file=self.errFile)
380 write('WARNING:', *args, file=self.warnFile)
383 write('DIAG:', *args, file=self.diagFile)
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)
802 write('***************************************', file=filehandle)
803 write(' ** Dumping Registry contents **', file=filehandle)
804 write('***************************************', file=filehandle)
805 write('// Types', file=filehandle)
808 write(' Type', name, '->', etree.tostring(tobj.elem)[0:maxlen], file=filehandle)
809 write('// Groups', file=filehandle)
812 write(' Group', name, '->', etree.tostring(gobj.elem)[0:maxlen], file=filehandle)
813 write('// Enums', file=filehandle)
816 write(' Enum', name, '->', etree.tostring(eobj.elem)[0:maxlen], file=filehandle)
817 write('// Commands', file=filehandle)
820 write(' Command', name, '->', etree.tostring(cobj.elem)[0:maxlen], file=filehandle)
821 write('// APIs', file=filehandle)
823 write(' API Version ', key, '->',
825 write('// Extensions', file=filehandle)
827 write(' Extension', key, '->',