|
| 1 | +From 852c32013fe9a288243a3edc16891e09a33fdb23 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Michael Simacek < [email protected]> |
| 3 | +Date: Fri, 17 Dec 2021 09:51:56 +0100 |
| 4 | +Subject: [PATCH] GraalPython compatibility |
| 5 | + |
| 6 | +--- |
| 7 | + src/lxml/etree.c | 6 +++++- |
| 8 | + src/lxml/objectify.c | 2 +- |
| 9 | + 2 files changed, 6 insertions(+), 2 deletions(-) |
| 10 | + |
| 11 | +diff --git a/src/lxml/etree.c b/src/lxml/etree.c |
| 12 | +index 1dbdf55..00bb33b 100644 |
| 13 | +--- a/src/lxml/etree.c |
| 14 | ++++ b/src/lxml/etree.c |
| 15 | +@@ -219,7 +219,7 @@ END: Cython Metadata */ |
| 16 | + #else |
| 17 | + #define CYTHON_COMPILING_IN_PYPY 0 |
| 18 | + #define CYTHON_COMPILING_IN_PYSTON 0 |
| 19 | +- #define CYTHON_COMPILING_IN_CPYTHON 1 |
| 20 | ++ #define CYTHON_COMPILING_IN_CPYTHON 0 |
| 21 | + #ifndef CYTHON_USE_TYPE_SLOTS |
| 22 | + #define CYTHON_USE_TYPE_SLOTS 1 |
| 23 | + #endif |
| 24 | +@@ -49239,6 +49239,10 @@ static void __pyx_f_4lxml_5etree__receiveGenericError(void *__pyx_v_c_log_handle |
| 25 | + * c_text = c_str # msg == "%s..." |
| 26 | + */ |
| 27 | + __pyx_v_c_str = va_charptr(__pyx_v_args); |
| 28 | ++ /* XXX GraalVM change: Sulong doesn't support varargs in a native callback */ |
| 29 | ++ if (__pyx_v_c_str == NULL) { |
| 30 | ++ __pyx_v_c_str = "<unknown>"; |
| 31 | ++ } |
| 32 | + |
| 33 | + /* "src/lxml/xmlerror.pxi":724 |
| 34 | + * format_count += 1 |
| 35 | +diff --git a/src/lxml/objectify.c b/src/lxml/objectify.c |
| 36 | +index e32a5a4..0db20f0 100644 |
| 37 | +--- a/src/lxml/objectify.c |
| 38 | ++++ b/src/lxml/objectify.c |
| 39 | +@@ -194,7 +194,7 @@ END: Cython Metadata */ |
| 40 | + #else |
| 41 | + #define CYTHON_COMPILING_IN_PYPY 0 |
| 42 | + #define CYTHON_COMPILING_IN_PYSTON 0 |
| 43 | +- #define CYTHON_COMPILING_IN_CPYTHON 1 |
| 44 | ++ #define CYTHON_COMPILING_IN_CPYTHON 0 |
| 45 | + #ifndef CYTHON_USE_TYPE_SLOTS |
| 46 | + #define CYTHON_USE_TYPE_SLOTS 1 |
| 47 | + #endif |
| 48 | +-- |
| 49 | +2.31.1 |
| 50 | + |
0 commit comments