File tree 1 file changed +15
-9
lines changed
1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change
1
+ // Error codes passed around between file input, tokenizer, parser and
2
+ // interpreter. This is necessary so we can turn them into Python
3
+ // exceptions at a higher level. Note that some errors have a
4
+ // slightly different meaning when passed from the tokenizer to the
5
+ // parser than when passed from the parser to the interpreter; e.g.
6
+ // the parser only returns E_EOF when it hits EOF immediately, and it
7
+ // never returns E_OK.
8
+ //
9
+ // The public PyRun_InteractiveOneObjectEx() function can return E_EOF,
10
+ // same as its variants:
11
+ //
12
+ // * PyRun_InteractiveOneObject()
13
+ // * PyRun_InteractiveOneFlags()
14
+ // * PyRun_InteractiveOne()
15
+
1
16
#ifndef Py_ERRCODE_H
2
17
#define Py_ERRCODE_H
3
18
#ifdef __cplusplus
4
19
extern "C" {
5
20
#endif
6
21
7
-
8
- /* Error codes passed around between file input, tokenizer, parser and
9
- interpreter. This is necessary so we can turn them into Python
10
- exceptions at a higher level. Note that some errors have a
11
- slightly different meaning when passed from the tokenizer to the
12
- parser than when passed from the parser to the interpreter; e.g.
13
- the parser only returns E_EOF when it hits EOF immediately, and it
14
- never returns E_OK. */
15
-
16
22
#define E_OK 10 /* No error */
17
23
#define E_EOF 11 /* End Of File */
18
24
#define E_INTR 12 /* Interrupted */
You can’t perform that action at this time.
0 commit comments