/external/python/cpython2/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
|
/external/python/cpython2/Tools/scripts/ |
D | 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 = {}): argument 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)
|
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)
|
/external/python/cpython2/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 | 46 outfp = StringIO() 47 base64.encode(infp, outfp) 48 eq(outfp.getvalue(), 56 outfp = StringIO() 57 base64.decode(infp, outfp) 58 self.assertEqual(outfp.getvalue(), 'www.python.org')
|
/external/selinux/checkpolicy/ |
D | checkmodule.c | 113 static int write_binary_policy(policydb_t * p, FILE *outfp) in write_binary_policy() argument 123 pf.fp = outfp; in write_binary_policy() 308 FILE *outfp = fopen(outfile, "w"); in main() local 310 if (!outfp) { in main() 319 if (write_binary_policy(&modpolicydb, outfp) != 0) { in main() 326 if (sepol_module_policydb_to_cil(outfp, &modpolicydb, 0) != 0) { in main() 332 fclose(outfp); in main()
|
D | checkpolicy.c | 399 FILE *outfp = NULL; in main() local 625 outfp = fopen(outfile, "w"); in main() 626 if (!outfp) { in main() 641 pf.fp = outfp; in main() 646 ret = sepol_kernel_policydb_to_conf(outfp, policydbp); in main() 656 ret = sepol_kernel_policydb_to_cil(outfp, policydbp); in main() 658 ret = sepol_module_policydb_to_cil(outfp, policydbp, 1); in main() 667 fclose(outfp); in main()
|
/external/python/cpython2/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()
|
/external/python/cpython2/Lib/email/ |
D | generator.py | 42 def __init__(self, outfp, mangle_from_=True, maxheaderlen=78): argument 59 self._fp = outfp 302 def __init__(self, outfp, mangle_from_=True, maxheaderlen=78, fmt=None): argument 324 Generator.__init__(self, outfp, mangle_from_, maxheaderlen)
|
/external/python/cpython2/Doc/library/ |
D | email.generator.rst | 29 .. class:: Generator(outfp[, mangle_from_[, maxheaderlen]]) 32 *outfp* for an argument. *outfp* must support the :meth:`write` method and be 81 Write the string *s* to the underlying file object, i.e. *outfp* passed to 96 .. class:: DecodedGenerator(outfp[, mangle_from_[, maxheaderlen[, fmt]]])
|
/external/curl/docs/examples/ |
D | curlx.c | 493 FILE *outfp; in main() local 494 BIO_get_fp(out, &outfp); in main() 495 curl_easy_setopt(p.curl, CURLOPT_WRITEDATA, outfp); in main()
|