/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/ |
D | makefreeze.py | 43 outfp = bkfile.open(base + file, 'w') 53 writecode(outfp, mangled, str) 54 outfp.close() 57 outfp = bkfile.open(base + 'frozen.c', 'w') 59 outfp.write('extern unsigned char M_%s[];\n' % mangled) 60 outfp.write(header) 62 outfp.write('\t{"%s", M_%s, %d},\n' % (mod, mangled, size)) 63 outfp.write('\n') 69 outfp.write('\t{"%s", NULL, 0},\n' % (mod,)) 70 outfp.write(trailer) [all …]
|
D | makeconfig.py | 8 def makeconfig(infp, outfp, modules, with_ifdef=0): argument 14 outfp.write(line) 21 outfp.write("#ifndef init%s\n"%mod) 22 outfp.write('extern void init%s(void);\n' % mod) 24 outfp.write("#endif\n") 30 outfp.write('\t{"%s", init%s},\n' % 50 outfp = sys.stdout 52 outfp = open(sys.argv[2], 'w') 53 makeconfig(infp, outfp, sys.argv[3:]) 54 if outfp != sys.stdout: [all …]
|
D | makemakefile.py | 5 def makemakefile(outfp, makevars, files, target): argument 6 outfp.write("# Makefile generated by freeze.py script\n\n") 11 outfp.write("%s=%s\n" % (key, makevars[key])) 12 outfp.write("\nall: %s\n\n" % target) 20 outfp.write("%s: %s\n" % (dest, file)) 21 outfp.write("\t$(CC) $(CFLAGS) $(CPPFLAGS) -c %s\n" % file) 25 outfp.write("\n%s: %s\n" % (target, ' '.join(deps))) 26 outfp.write("\t$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) %s -o %s $(LDLAST)\n" % 29 outfp.write("\nclean:\n\t-rm -f *.o %s\n" % target)
|
D | freeze.py | 437 outfp = open(makefile, 'w') 439 winmakemakefile.makemakefile(outfp, 444 outfp.close() 450 outfp = bkfile.open(config_c, 'w') 452 makeconfig.makeconfig(infp, outfp, builtins) 454 outfp.close() 473 outfp = bkfile.open(makefile, 'w') 475 makemakefile.makemakefile(outfp, somevars, files, base_target) 477 outfp.close()
|
D | winmakemakefile.py | 45 def makemakefile(outfp, vars, files, target): argument 48 sys.stdout = outfp
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
D | eptags.py | 24 def treat_file(filename, outfp): argument 46 outfp.write('\f\n%s,%d\n' % (filename,size)) 48 outfp.write(tag) 51 outfp = open('TAGS', 'w') 53 treat_file(filename, outfp)
|
D | h2py.py | 81 outfp = open(outfile, 'w') 82 outfp.write('# Generated by h2py from %s\n' % filename) 89 process(fp, outfp) 90 outfp.close() 113 def process(fp, outfp, env = {}): argument 137 outfp.write(stmt) 149 outfp.write(stmt) 156 outfp.write('from %s import *\n' % importable[filename]) 167 outfp.write( 169 process(inclfp, outfp, env)
|
D | ftpmirror.py | 338 def __init__(self, fp, blocksize, outfp): argument 343 self.outfp = outfp 348 self.outfp.write('#') 349 self.outfp.flush() 353 self.outfp.write('\n')
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_quopri.py | 149 outfp = cStringIO.StringIO() 150 quopri.encode(infp, outfp, quotetabs=False) 151 self.assertTrue(outfp.getvalue() == e) 157 outfp = cStringIO.StringIO() 158 quopri.decode(infp, outfp) 159 self.assertTrue(outfp.getvalue() == p)
|
D | test_base64.py | 42 outfp = StringIO() 43 base64.encode(infp, outfp) 44 eq(outfp.getvalue(), 52 outfp = StringIO() 53 base64.decode(infp, outfp) 54 self.assertEqual(outfp.getvalue(), 'www.python.org')
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | quopri.py | 110 outfp = StringIO() 111 encode(infp, outfp, quotetabs, header) 112 return outfp.getvalue() 164 outfp = StringIO() 165 decode(infp, outfp, header = header) 166 return outfp.getvalue()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/ |
D | generator.py | 42 def __init__(self, outfp, mangle_from_=True, maxheaderlen=78): argument 59 self._fp = outfp 295 def __init__(self, outfp, mangle_from_=True, maxheaderlen=78, fmt=None): argument 317 Generator.__init__(self, outfp, mangle_from_, maxheaderlen)
|