Home
last modified time | relevance | path

Searched refs:outfp (Results 1 - 15 of 15) sorted by relevance

/third_party/python/Tools/freeze/
H A Dmakeconfig.py9 def makeconfig(infp, outfp, modules, with_ifdef=0):
13 outfp.write(line)
20 outfp.write("#ifndef PyInit_%s\n"%mod)
21 outfp.write('extern PyObject* PyInit_%s(void);\n' % mod)
23 outfp.write("#endif\n")
29 outfp.write('\t{"%s", PyInit_%s},\n' %
49 outfp = sys.stdout
51 outfp = open(sys.argv[2], 'w')
52 makeconfig(infp, outfp, sys.argv[3:])
53 if outfp !
[all...]
H A Dmakemakefile.py5 def makemakefile(outfp, makevars, files, target):
6 outfp.write("# Makefile generated by freeze.py script\n\n")
10 outfp.write("%s=%s\n" % (key, makevars[key]))
11 outfp.write("\nall: %s\n\n" % target)
19 outfp.write("%s: %s\n" % (dest, file))
20 outfp.write("\t$(CC) $(PY_CFLAGS) $(PY_CPPFLAGS) -c %s\n" % file)
24 outfp.write("\n%s: %s\n" % (target, ' '.join(deps)))
25 outfp.write("\t$(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) %s -o %s $(LDLAST)\n" %
28 outfp.write("\nclean:\n\t-rm -f *.o %s\n" % target)
H A Dmakefreeze.py42 with bkfile.open(base + file, 'w') as outfp:
52 writecode(outfp, mangled, str)
55 with bkfile.open(base + 'frozen.c', 'w') as outfp:
57 outfp.write('extern unsigned char M_%s[];\n' % mangled)
58 outfp.write(header)
60 outfp.write('\t{"%s", M_%s, %d, %s},\n' % (mod, mangled, size, is_package))
61 outfp.write('\n')
67 outfp.write('\t{"%s", NULL, 0},\n' % (mod,))
68 outfp.write(trailer)
69 outfp
[all...]
H A Dwinmakemakefile.py45 def makemakefile(outfp, vars, files, target):
48 sys.stdout = outfp
H A Dfreeze.py440 with open(makefile, 'w') as outfp:
441 winmakemakefile.makemakefile(outfp,
449 with open(config_c_in) as infp, bkfile.open(config_c, 'w') as outfp:
450 makeconfig.makeconfig(infp, outfp, builtins)
468 with bkfile.open(makefile, 'w') as outfp:
469 makemakefile.makemakefile(outfp, somevars, files, base_target)
/third_party/python/Tools/scripts/
H A Deptags.py24 def treat_file(filename, outfp):
25 """Append tags found in file named 'filename' to the open file 'outfp'"""
47 outfp.write('\f\n%s,%d\n' % (filename,size))
49 outfp.write(tag)
52 with open('TAGS', 'w') as outfp:
54 treat_file(filename, outfp)
/third_party/python/Lib/
H A Dquopri.py111 outfp = BytesIO()
112 encode(infp, outfp, quotetabs, header)
113 return outfp.getvalue()
165 outfp = BytesIO()
166 decode(infp, outfp, header=header)
167 return outfp.getvalue()
/third_party/python/Lib/test/
H A Dtest_quopri.py156 outfp = io.BytesIO()
157 quopri.encode(infp, outfp, quotetabs=False)
158 self.assertEqual(outfp.getvalue(), e)
164 outfp = io.BytesIO()
165 quopri.decode(infp, outfp)
166 self.assertEqual(outfp.getvalue(), p)
H A Dtest_base64.py65 outfp = BytesIO()
66 base64.encode(infp, outfp)
67 eq(outfp.getvalue(),
79 outfp = BytesIO()
80 base64.decode(infp, outfp)
81 self.assertEqual(outfp.getvalue(), b'www.python.org')
/third_party/selinux/checkpolicy/
H A Dcheckmodule.c110 static int write_binary_policy(policydb_t * p, FILE *outfp) in write_binary_policy() argument
120 pf.fp = outfp; in write_binary_policy()
333 FILE *outfp = fopen(outfile, "w"); in main() local
335 if (!outfp) { in main()
341 if (write_binary_policy(&modpolicydb, outfp) != 0) { in main()
346 if (sepol_module_policydb_to_cil(outfp, &modpolicydb, 0) != 0) { in main()
352 if (fclose(outfp)) { in main()
H A Dcheckpolicy.c402 FILE *outfp = NULL; in main() local
657 outfp = stdout; in main()
660 outfp = fopen(outfile, "w"); in main()
661 if (!outfp) { in main()
673 pf.fp = outfp; in main()
684 ret = sepol_kernel_policydb_to_conf(outfp, policydbp); in main()
693 ret = sepol_kernel_policydb_to_cil(outfp, policydbp); in main()
695 ret = sepol_module_policydb_to_cil(outfp, policydbp, 1); in main()
703 if (outfp != stdout) { in main()
704 if(fclose(outfp)) { in main()
[all...]
/third_party/selinux/libsepol/fuzz/
H A Dbinpolicy-fuzzer.c8 static int write_binary_policy(policydb_t *p, FILE *outfp) in write_binary_policy() argument
14 pf.fp = outfp; in write_binary_policy()
/third_party/node/tools/icu/
H A Dshrink-icu-src.py42 def compress_data(infp, outfp):
44 with bz2.BZ2File(outfp, 'wb') as outf:
/third_party/python/Lib/email/
H A Dgenerator.py37 def __init__(self, outfp, mangle_from_=None, maxheaderlen=None, *,
41 outfp is the output file-like object for writing the message to. It
64 self._fp = outfp
408 The outfp object must accept bytes in its write method.
458 def __init__(self, outfp, mangle_from_=None, maxheaderlen=None, fmt=None, *,
481 Generator.__init__(self, outfp, mangle_from_, maxheaderlen,
/third_party/toybox/toys/pending/
H A Dawk.c3112 static void varprint(int(*fpvar)(FILE *, const char *, ...), FILE *outfp, int nargs) in varprint() argument
3125 fpvar(outfp, "%s", fmt); in varprint()
3144 fpvar(outfp, fmt); in varprint()
3174 if (fmtc == 's') fpvar(outfp, pfmt, s); in varprint()
3175 else if (fmtc == 'c') fpvar(outfp, pfmt, (wint_t)n); in varprint()
3176 else if (strchr("di", fmtc)) fpvar(outfp, pfmt, (long)n); in varprint()
3177 else if (strchr("ouxX", fmtc)) fpvar(outfp, pfmt, (unsigned long)n); in varprint()
3178 else fpvar(outfp, pfmt, n); in varprint()
3181 if (fmtc == 's') fpvar(outfp, pfmt, cnt2, s); in varprint()
3182 else if (fmtc == 'c') fpvar(outfp, pfm in varprint()
3777 struct zfile *outfp = TT.zstdout; interpx() local
[all...]

Completed in 13 milliseconds