File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
graalpython/com.oracle.graal.python.cext Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 51
51
#define PYPY_VERSION_NUM 0
52
52
53
53
#include <truffle.h>
54
- #include <polyglot.h>
55
54
#include <stdio.h>
56
55
#include <string.h>
57
56
#include <errno.h>
Original file line number Diff line number Diff line change 43
43
44
44
#define MUST_INLINE __attribute__((always_inline)) inline
45
45
46
+ #include "polyglot.h"
46
47
#include "Python.h"
47
48
48
49
#define SRC_CS "utf-8"
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ PyObject * PyExc_RuntimeWarning = NULL;
69
69
PyObject * PyExc_FutureWarning = NULL ;
70
70
PyObject * PyExc_PendingDeprecationWarning = NULL ;
71
71
PyObject * PyExc_SyntaxWarning = NULL ;
72
+ PyObject * PyExc_SyntaxError = NULL ;
72
73
PyObject * PyExc_ImportWarning = NULL ;
73
74
PyObject * PyExc_UnicodeWarning = NULL ;
74
75
PyObject * PyExc_BytesWarning = NULL ;
@@ -107,6 +108,7 @@ void initialize_exceptions() {
107
108
PyExc_RuntimeError = PY_EXCEPTION ("RuntimeError" );
108
109
PyExc_RuntimeWarning = PY_EXCEPTION ("RuntimeWarning" );
109
110
PyExc_SyntaxWarning = PY_EXCEPTION ("SyntaxWarning" );
111
+ PyExc_SyntaxError = PY_EXCEPTION ("SyntaxError" );
110
112
PyExc_SystemError = PY_EXCEPTION ("SystemError" );
111
113
PyExc_TypeError = PY_EXCEPTION ("TypeError" );
112
114
PyExc_UnicodeWarning = PY_EXCEPTION ("UnicodeWarning" );
You can’t perform that action at this time.
0 commit comments