Mercurial > cpython-lru_cache-weakref
diff Include/pyerrors.h @ 64859:00e4ce31d404
add PyErr_SyntaxLocationEx, to support adding a column offset
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Mon, 20 Sep 2010 22:42:10 +0000 |
| parents | 1cfad55de5bd |
| children | 0c4884db53e0 |
line wrap: on
line diff
--- a/Include/pyerrors.h Mon Sep 20 21:47:37 2010 +0000 +++ b/Include/pyerrors.h Mon Sep 20 22:42:10 2010 +0000 @@ -229,6 +229,7 @@ /* Support for adding program text to SyntaxErrors */ PyAPI_FUNC(void) PyErr_SyntaxLocation(const char *, int); +PyAPI_FUNC(void) PyErr_SyntaxLocationEx(const char *, int, int); PyAPI_FUNC(PyObject *) PyErr_ProgramText(const char *, int); /* The following functions are used to create and modify unicode
