add PyErr_SyntaxLocationEx, to support adding a column offset

This commit is contained in:
Benjamin Peterson 2010-09-20 22:42:10 +00:00
parent 26d64aeee4
commit 2c53971b37
3 changed files with 32 additions and 1 deletions

View file

@ -229,6 +229,7 @@ int PySignal_SetWakeupFd(int fd);
/* 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