Mercurial > cpython-lru_cache-weakref
diff Include/code.h @ 66664:62b61abd02b8
Merge branches/pep-0384.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Fri, 03 Dec 2010 20:14:31 +0000 |
| parents | 453fd8182c2f |
| children | 3c9232a684ae |
line wrap: on
line diff
--- a/Include/code.h Fri Dec 03 19:59:41 2010 +0000 +++ b/Include/code.h Fri Dec 03 20:14:31 2010 +0000 @@ -1,5 +1,6 @@ /* Definitions for bytecode */ +#ifndef Py_LIMITED_API #ifndef Py_CODE_H #define Py_CODE_H #ifdef __cplusplus @@ -93,8 +94,10 @@ /* Update *bounds to describe the first and one-past-the-last instructions in the same line as lasti. Return the number of that line. */ +#ifndef Py_LIMITED_API PyAPI_FUNC(int) _PyCode_CheckLineNumber(PyCodeObject* co, int lasti, PyAddrPair *bounds); +#endif PyAPI_FUNC(PyObject*) PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names, PyObject *lineno_obj); @@ -103,3 +106,4 @@ } #endif #endif /* !Py_CODE_H */ +#endif /* Py_LIMITED_API */
