HomeSort by relevance Sort by last modified time
    Searched refs:outfp (Results 1 - 25 of 43) sorted by null

1 2

  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/
makemakefile.py 5 def makemakefile(outfp, makevars, files, target):
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)
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...]
makeconfig.py 8 def makeconfig(infp, outfp, modules, with_ifdef=0):
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...]
winmakemakefile.py 45 def makemakefile(outfp, vars, files, target):
48 sys.stdout = outfp
  /external/python/cpython2/Tools/freeze/
makemakefile.py 5 def makemakefile(outfp, makevars, files, target):
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)
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...]
makeconfig.py 8 def makeconfig(infp, outfp, modules, with_ifdef=0):
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...]
winmakemakefile.py 45 def makemakefile(outfp, vars, files, target):
48 sys.stdout = outfp
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
eptags.py 24 def treat_file(filename, outfp):
25 """Append tags found in file named 'filename' to the open file 'outfp'"""
46 outfp.write('\f\n%s,%d\n' % (filename,size))
48 outfp.write(tag)
51 outfp = open('TAGS', 'w')
53 treat_file(filename, outfp)
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 = {}):
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)
    [all...]
  /external/python/cpython2/Tools/scripts/
eptags.py 24 def treat_file(filename, outfp):
25 """Append tags found in file named 'filename' to the open file 'outfp'"""
46 outfp.write('\f\n%s,%d\n' % (filename,size))
48 outfp.write(tag)
51 outfp = open('TAGS', 'w')
53 treat_file(filename, outfp)
h2py.py 87 outfp = open(outfile, 'w')
88 outfp.write('# Generated by h2py from %s\n' % filename)
95 process(fp, outfp)
96 outfp.close()
119 def process(fp, outfp, env = {}):
143 outfp.write(stmt)
155 outfp.write(stmt)
162 outfp.write('from %s import *\n' % importable[filename])
173 outfp.write(
175 process(inclfp, outfp, env
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
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)
test_base64.py 43 outfp = StringIO()
44 base64.encode(infp, outfp)
45 eq(outfp.getvalue(),
53 outfp = StringIO()
54 base64.decode(infp, outfp)
55 self.assertEqual(outfp.getvalue(), 'www.python.org')
  /external/python/cpython2/Lib/test/
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)
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
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)
test_base64.py 47 outfp = StringIO()
48 base64.encode(infp, outfp)
49 eq(outfp.getvalue(),
57 outfp = StringIO()
58 base64.decode(infp, outfp)
59 self.assertEqual(outfp.getvalue(), 'www.python.org')
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
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)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
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)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
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)
  /external/selinux/checkpolicy/
checkmodule.c 113 static int write_binary_policy(policydb_t * p, FILE *outfp)
123 pf.fp = outfp;
308 FILE *outfp = fopen(outfile, "w"); local
310 if (!outfp) {
319 if (write_binary_policy(&modpolicydb, outfp) != 0) {
326 if (sepol_module_policydb_to_cil(outfp, &modpolicydb, 0) != 0) {
332 fclose(outfp);
  /art/runtime/interpreter/mterp/
gen_mterp.py 400 def emitAsmHeader(outfp, dict, prefix):
401 outfp.write("/* ------------------------------ */\n")
408 outfp.write(prefix + "_%(opcode)s: /* 0x%(opnum)02x */\n" % dict)
414 def emitAsmStub(outfp, dict):
415 emitAsmHeader(outfp, dict, label_prefix)
418 outfp.write(templ.substitute(dict))
421 # Append the file specified by "source" to the open "outfp". Each line will
435 def appendSourceFile(source, dict, outfp, sister_list):
436 outfp.write("/* File: %s */\n" % source)
455 appendSourceFile(alt_source, new_dict, outfp, sister_list
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
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()
  /external/python/cpython2/Lib/
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()
  /prebuilts/gdb/darwin-x86/lib/python2.7/
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()

Completed in 1368 milliseconds

1 2