Lines Matching refs:outfp
9 def makeconfig(infp, outfp, modules, with_ifdef=0): argument
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 != sys.stdout:
54 outfp.close()