| 1 |
#include "parts.h" |
| 2 |
#include "util.h" |
| 3 |
#include "clinic/file.c.h" |
| 4 |
|
| 5 |
|
| 6 |
/*[clinic input] |
| 7 |
module _testcapi |
| 8 |
[clinic start generated code]*/ |
| 9 |
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=6361033e795369fc]*/ |
| 10 |
|
| 11 |
|
| 12 |
/*[clinic input] |
| 13 |
_testcapi.pyfile_newstdprinter |
| 14 |
|
| 15 |
fd: int |
| 16 |
/ |
| 17 |
|
| 18 |
[clinic start generated code]*/ |
| 19 |
|
| 20 |
static PyObject * |
| 21 |
_testcapi_pyfile_newstdprinter_impl(PyObject *module, int fd) |
| 22 |
/*[clinic end generated code: output=8a2d1c57b6892db3 input=442f1824142262ea]*/ |
| 23 |
{ |
| 24 |
return PyFile_NewStdPrinter(fd); |
| 25 |
} |
| 26 |
|
| 27 |
|
| 28 |
static PyMethodDef test_methods[] = { |
| 29 |
_TESTCAPI_PYFILE_NEWSTDPRINTER_METHODDEF |
| 30 |
{NULL}, |
| 31 |
}; |
| 32 |
|
| 33 |
int |
| 34 |
_PyTestCapi_Init_File(PyObject *m) |
| 35 |
{ |
| 36 |
return PyModule_AddFunctions(m, test_methods); |
| 37 |
} |