Home
last modified time | relevance | path

Searched refs:outfp (Results 1 – 12 of 12) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/
Dmakefreeze.py43 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 …]
Dmakeconfig.py8 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 …]
Dmakemakefile.py5 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)
Dfreeze.py437 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()
Dwinmakemakefile.py45 def makemakefile(outfp, vars, files, target): argument
48 sys.stdout = outfp
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Deptags.py24 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)
Dh2py.py81 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)
Dftpmirror.py338 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/
Dtest_quopri.py149 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)
Dtest_base64.py42 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/
Dquopri.py110 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/
Dgenerator.py42 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)