diff options
| author | Fred Drake <fdrake@acm.org> | 2000-07-11 17:53:00 +0000 |
|---|---|---|
| committer | Fred Drake <fdrake@acm.org> | 2000-07-11 17:53:00 +0000 |
| commit | 85f363990cbd6df21015eebdc171c533176e3407 (patch) | |
| tree | 4aa69857ffe21991384e379799f42ba308a58086 /Parser/parser.h | |
| parent | 88e1932930245b2f7ed300ff8b31034db7ecda5b (diff) | |
| download | cpython-git-85f363990cbd6df21015eebdc171c533176e3407.tar.gz | |
Create two new exceptions: IndentationError and TabError. These are
used for indentation related errors. This patch includes Ping's
improvements for indentation-related error messages.
Closes SourceForge patches #100734 and #100856.
Diffstat (limited to 'Parser/parser.h')
| -rw-r--r-- | Parser/parser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/parser.h b/Parser/parser.h index 608737363a..d0df8cfb69 100644 --- a/Parser/parser.h +++ b/Parser/parser.h @@ -38,7 +38,8 @@ typedef struct { parser_state *PyParser_New(grammar *g, int start); void PyParser_Delete(parser_state *ps); -int PyParser_AddToken(parser_state *ps, int type, char *str, int lineno); +int PyParser_AddToken(parser_state *ps, int type, char *str, int lineno, + int *expected_ret); void PyGrammar_AddAccelerators(grammar *g); #ifdef __cplusplus |
