Mercurial > cpython-lru_cache-weakref
comparison Include/Python.h @ 63961:4742e7aea2f5
Reimplement addbuilddir() in C inside getpath.c, so as to execute it
at interpreter startup before importing any non-builtin modules.
Should fix #9589.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Fri, 13 Aug 2010 22:25:01 +0000 |
| parents | c16803bbd790 |
| children | 7be5916333df |
comparison
equal
deleted
inserted
replaced
| 63960:291c9afab12c | 63961:4742e7aea2f5 |
|---|---|
| 127 extern "C" { | 127 extern "C" { |
| 128 #endif | 128 #endif |
| 129 /* _Py_Mangle is defined in compile.c */ | 129 /* _Py_Mangle is defined in compile.c */ |
| 130 PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name); | 130 PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name); |
| 131 | 131 |
| 132 /* _Py_char2wchar lives in main.c */ | 132 /* These functions live in main.c */ |
| 133 PyAPI_FUNC(wchar_t *) _Py_char2wchar(char *); | 133 PyAPI_FUNC(wchar_t *) _Py_char2wchar(char *); |
| 134 PyAPI_FUNC(FILE *) _Py_wfopen(const wchar_t *path, const wchar_t *mode); | |
| 134 #ifdef __cplusplus | 135 #ifdef __cplusplus |
| 135 } | 136 } |
| 136 #endif | 137 #endif |
| 137 | 138 |
| 138 /* Argument must be a char or an int in [-128, 127] or [0, 255]. */ | 139 /* Argument must be a char or an int in [-128, 127] or [0, 255]. */ |
