Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/mingw32/Python27/include/errcode.h @ 87:2a2c65a20a8b
Add Python libs and headers
author | Chris Cannam |
---|---|
date | Wed, 25 Feb 2015 14:05:22 +0000 |
parents | |
children |
rev | line source |
---|---|
Chris@87 | 1 #ifndef Py_ERRCODE_H |
Chris@87 | 2 #define Py_ERRCODE_H |
Chris@87 | 3 #ifdef __cplusplus |
Chris@87 | 4 extern "C" { |
Chris@87 | 5 #endif |
Chris@87 | 6 |
Chris@87 | 7 |
Chris@87 | 8 /* Error codes passed around between file input, tokenizer, parser and |
Chris@87 | 9 interpreter. This is necessary so we can turn them into Python |
Chris@87 | 10 exceptions at a higher level. Note that some errors have a |
Chris@87 | 11 slightly different meaning when passed from the tokenizer to the |
Chris@87 | 12 parser than when passed from the parser to the interpreter; e.g. |
Chris@87 | 13 the parser only returns E_EOF when it hits EOF immediately, and it |
Chris@87 | 14 never returns E_OK. */ |
Chris@87 | 15 |
Chris@87 | 16 #define E_OK 10 /* No error */ |
Chris@87 | 17 #define E_EOF 11 /* End Of File */ |
Chris@87 | 18 #define E_INTR 12 /* Interrupted */ |
Chris@87 | 19 #define E_TOKEN 13 /* Bad token */ |
Chris@87 | 20 #define E_SYNTAX 14 /* Syntax error */ |
Chris@87 | 21 #define E_NOMEM 15 /* Ran out of memory */ |
Chris@87 | 22 #define E_DONE 16 /* Parsing complete */ |
Chris@87 | 23 #define E_ERROR 17 /* Execution error */ |
Chris@87 | 24 #define E_TABSPACE 18 /* Inconsistent mixing of tabs and spaces */ |
Chris@87 | 25 #define E_OVERFLOW 19 /* Node had too many children */ |
Chris@87 | 26 #define E_TOODEEP 20 /* Too many indentation levels */ |
Chris@87 | 27 #define E_DEDENT 21 /* No matching outer block for dedent */ |
Chris@87 | 28 #define E_DECODE 22 /* Error in decoding into Unicode */ |
Chris@87 | 29 #define E_EOFS 23 /* EOF in triple-quoted string */ |
Chris@87 | 30 #define E_EOLS 24 /* EOL in single-quoted string */ |
Chris@87 | 31 #define E_LINECONT 25 /* Unexpected characters after a line continuation */ |
Chris@87 | 32 |
Chris@87 | 33 #ifdef __cplusplus |
Chris@87 | 34 } |
Chris@87 | 35 #endif |
Chris@87 | 36 #endif /* !Py_ERRCODE_H */ |