annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/python3.8/errcode.h @ 69:33d812a61356

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