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