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 5151#define PYPY_VERSION_NUM 0
5252
5353#include <truffle.h>
54- #include <polyglot.h>
5554#include <stdio.h>
5655#include <string.h>
5756#include <errno.h>
Original file line number Diff line number Diff line change 4343
4444#define MUST_INLINE __attribute__((always_inline)) inline
4545
46+ #include "polyglot.h"
4647#include "Python.h"
4748
4849#define SRC_CS "utf-8"
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ PyObject * PyExc_RuntimeWarning = NULL;
6969PyObject * PyExc_FutureWarning = NULL ;
7070PyObject * PyExc_PendingDeprecationWarning = NULL ;
7171PyObject * PyExc_SyntaxWarning = NULL ;
72+ PyObject * PyExc_SyntaxError = NULL ;
7273PyObject * PyExc_ImportWarning = NULL ;
7374PyObject * PyExc_UnicodeWarning = NULL ;
7475PyObject * PyExc_BytesWarning = NULL ;
@@ -107,6 +108,7 @@ void initialize_exceptions() {
107108 PyExc_RuntimeError = PY_EXCEPTION ("RuntimeError" );
108109 PyExc_RuntimeWarning = PY_EXCEPTION ("RuntimeWarning" );
109110 PyExc_SyntaxWarning = PY_EXCEPTION ("SyntaxWarning" );
111+ PyExc_SyntaxError = PY_EXCEPTION ("SyntaxError" );
110112 PyExc_SystemError = PY_EXCEPTION ("SystemError" );
111113 PyExc_TypeError = PY_EXCEPTION ("TypeError" );
112114 PyExc_UnicodeWarning = PY_EXCEPTION ("UnicodeWarning" );
You can’t perform that action at this time.
0 commit comments