Mercurial > cpython-lru_cache-weakref
comparison Include/Python.h @ 60649:c532afb0fa89
Fix the --with-cxx-main build.
| author | Collin Winter <collinw@gmail.com> |
|---|---|
| date | Sat, 17 Apr 2010 00:20:57 +0000 |
| parents | 62d11785204f |
| children | fe6b6c189bb4 |
comparison
equal
deleted
inserted
replaced
| 60648:7b69e630d237 | 60649:c532afb0fa89 |
|---|---|
| 118 #include "pyctype.h" | 118 #include "pyctype.h" |
| 119 #include "pystrtod.h" | 119 #include "pystrtod.h" |
| 120 #include "pystrcmp.h" | 120 #include "pystrcmp.h" |
| 121 #include "dtoa.h" | 121 #include "dtoa.h" |
| 122 | 122 |
| 123 #ifdef __cplusplus | |
| 124 extern "C" { | |
| 125 #endif | |
| 123 /* _Py_Mangle is defined in compile.c */ | 126 /* _Py_Mangle is defined in compile.c */ |
| 124 PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name); | 127 PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name); |
| 125 | 128 |
| 126 /* _Py_char2wchar lives in python.c */ | 129 /* _Py_char2wchar lives in python.c */ |
| 127 PyAPI_FUNC(wchar_t *) _Py_char2wchar(char *); | 130 PyAPI_FUNC(wchar_t *) _Py_char2wchar(char *); |
| 131 #ifdef __cplusplus | |
| 132 } | |
| 133 #endif | |
| 128 | 134 |
| 129 /* Convert a possibly signed character to a nonnegative int */ | 135 /* Convert a possibly signed character to a nonnegative int */ |
| 130 /* XXX This assumes characters are 8 bits wide */ | 136 /* XXX This assumes characters are 8 bits wide */ |
| 131 #ifdef __CHAR_UNSIGNED__ | 137 #ifdef __CHAR_UNSIGNED__ |
| 132 #define Py_CHARMASK(c) (c) | 138 #define Py_CHARMASK(c) (c) |
