@@ -1723,9 +1723,6 @@ PyAPI_FUNC(Py_ssize_t) PyBuffer_SizeFromFormat(const char* a) {
1723
1723
PyAPI_FUNC (int ) PyBuffer_ToContiguous (void * a , Py_buffer * b , Py_ssize_t c , char d ) {
1724
1724
unimplemented ("PyBuffer_ToContiguous" ); exit (-1 );
1725
1725
}
1726
- PyAPI_FUNC (char * ) PyByteArray_AsString (PyObject * a ) {
1727
- unimplemented ("PyByteArray_AsString" ); exit (-1 );
1728
- }
1729
1726
PyAPI_FUNC (PyObject * ) PyByteArray_Concat (PyObject * a , PyObject * b ) {
1730
1727
unimplemented ("PyByteArray_Concat" ); exit (-1 );
1731
1728
}
@@ -1741,9 +1738,6 @@ PyAPI_FUNC(int) PyByteArray_Resize(PyObject* a, Py_ssize_t b) {
1741
1738
int result = (int ) GraalPyByteArray_Resize (a , b );
1742
1739
return result ;
1743
1740
}
1744
- PyAPI_FUNC (Py_ssize_t ) PyByteArray_Size (PyObject * a ) {
1745
- unimplemented ("PyByteArray_Size" ); exit (-1 );
1746
- }
1747
1741
char * (* __target__PyBytes_AsString )(PyObject * ) = NULL ;
1748
1742
PyAPI_FUNC (char * ) PyBytes_AsString (PyObject * a ) {
1749
1743
char * result = (char * ) __target__PyBytes_AsString (a );
@@ -2112,7 +2106,8 @@ PyAPI_FUNC(PyObject*) PyDict_GetItemWithError(PyObject* a, PyObject* b) {
2112
2106
return result ;
2113
2107
}
2114
2108
PyAPI_FUNC (PyObject * ) PyDict_Items (PyObject * a ) {
2115
- unimplemented ("PyDict_Items" ); exit (-1 );
2109
+ PyObject * result = (PyObject * ) GraalPyDict_Items (a );
2110
+ return result ;
2116
2111
}
2117
2112
PyAPI_FUNC (PyObject * ) PyDict_Keys (PyObject * a ) {
2118
2113
PyObject * result = (PyObject * ) GraalPyDict_Keys (a );
@@ -2290,8 +2285,10 @@ PyAPI_FUNC(void) PyErr_SyntaxLocationEx(const char* a, int b, int c) {
2290
2285
PyAPI_FUNC (void ) PyErr_SyntaxLocationObject (PyObject * a , int b , int c ) {
2291
2286
unimplemented ("PyErr_SyntaxLocationObject" ); exit (-1 );
2292
2287
}
2288
+ int (* __target__PyErr_WarnExplicit )(PyObject * , const char * , const char * , int , const char * , PyObject * ) = NULL ;
2293
2289
PyAPI_FUNC (int ) PyErr_WarnExplicit (PyObject * a , const char * b , const char * c , int d , const char * e , PyObject * f ) {
2294
- unimplemented ("PyErr_WarnExplicit" ); exit (-1 );
2290
+ int result = (int ) __target__PyErr_WarnExplicit (a , b , c , d , e , f );
2291
+ return result ;
2295
2292
}
2296
2293
PyAPI_FUNC (int ) PyErr_WarnExplicitFormat (PyObject * a , const char * b , int c , const char * d , PyObject * e , const char * f , ...) {
2297
2294
unimplemented ("PyErr_WarnExplicitFormat" ); exit (-1 );
@@ -2392,7 +2389,8 @@ PyAPI_FUNC(const char*) PyExceptionClass_Name(PyObject* a) {
2392
2389
unimplemented ("PyExceptionClass_Name" ); exit (-1 );
2393
2390
}
2394
2391
PyAPI_FUNC (PyObject * ) PyException_GetCause (PyObject * a ) {
2395
- unimplemented ("PyException_GetCause" ); exit (-1 );
2392
+ PyObject * result = (PyObject * ) GraalPyException_GetCause (a );
2393
+ return result ;
2396
2394
}
2397
2395
PyAPI_FUNC (PyObject * ) PyException_GetContext (PyObject * a ) {
2398
2396
PyObject * result = (PyObject * ) GraalPyException_GetContext (a );
@@ -3533,14 +3531,16 @@ PyAPI_FUNC(int) PySequence_Contains(PyObject* a, PyObject* b) {
3533
3531
return result ;
3534
3532
}
3535
3533
PyAPI_FUNC (Py_ssize_t ) PySequence_Count (PyObject * a , PyObject * b ) {
3536
- unimplemented ("PySequence_Count" ); exit (-1 );
3534
+ Py_ssize_t result = (Py_ssize_t ) GraalPySequence_Count (a , b );
3535
+ return result ;
3537
3536
}
3538
3537
PyAPI_FUNC (int ) PySequence_DelItem (PyObject * a , Py_ssize_t b ) {
3539
3538
int result = (int ) GraalPySequence_DelItem (a , b );
3540
3539
return result ;
3541
3540
}
3542
3541
PyAPI_FUNC (int ) PySequence_DelSlice (PyObject * a , Py_ssize_t b , Py_ssize_t c ) {
3543
- unimplemented ("PySequence_DelSlice" ); exit (-1 );
3542
+ int result = (int ) GraalPySequence_DelSlice (a , b , c );
3543
+ return result ;
3544
3544
}
3545
3545
PyObject * (* __target__PySequence_Fast )(PyObject * , const char * ) = NULL ;
3546
3546
PyAPI_FUNC (PyObject * ) PySequence_Fast (PyObject * a , const char * b ) {
@@ -3567,7 +3567,8 @@ PyAPI_FUNC(PyObject*) PySequence_InPlaceRepeat(PyObject* a, Py_ssize_t b) {
3567
3567
return result ;
3568
3568
}
3569
3569
PyAPI_FUNC (Py_ssize_t ) PySequence_Index (PyObject * a , PyObject * b ) {
3570
- unimplemented ("PySequence_Index" ); exit (-1 );
3570
+ Py_ssize_t result = (Py_ssize_t ) GraalPySequence_Index (a , b );
3571
+ return result ;
3571
3572
}
3572
3573
PyAPI_FUNC (Py_ssize_t ) PySequence_Length (PyObject * a ) {
3573
3574
Py_ssize_t result = (Py_ssize_t ) GraalPySequence_Length (a );
@@ -3586,7 +3587,8 @@ PyAPI_FUNC(int) PySequence_SetItem(PyObject* a, Py_ssize_t b, PyObject* c) {
3586
3587
return result ;
3587
3588
}
3588
3589
PyAPI_FUNC (int ) PySequence_SetSlice (PyObject * a , Py_ssize_t b , Py_ssize_t c , PyObject * d ) {
3589
- unimplemented ("PySequence_SetSlice" ); exit (-1 );
3590
+ int result = (int ) GraalPySequence_SetSlice (a , b , c , d );
3591
+ return result ;
3590
3592
}
3591
3593
PyAPI_FUNC (Py_ssize_t ) PySequence_Size (PyObject * a ) {
3592
3594
Py_ssize_t result = (Py_ssize_t ) GraalPySequence_Size (a );
@@ -4037,8 +4039,10 @@ PyAPI_FUNC(int) PyType_Ready(PyTypeObject* a) {
4037
4039
int result = (int ) __target__PyType_Ready (a );
4038
4040
return result ;
4039
4041
}
4042
+ PyObject * (* __target__PyUnicodeDecodeError_Create )(const char * , const char * , Py_ssize_t , Py_ssize_t , Py_ssize_t , const char * ) = NULL ;
4040
4043
PyAPI_FUNC (PyObject * ) PyUnicodeDecodeError_Create (const char * a , const char * b , Py_ssize_t c , Py_ssize_t d , Py_ssize_t e , const char * f ) {
4041
- unimplemented ("PyUnicodeDecodeError_Create" ); exit (-1 );
4044
+ PyObject * result = (PyObject * ) __target__PyUnicodeDecodeError_Create (a , b , c , d , e , f );
4045
+ return result ;
4042
4046
}
4043
4047
PyAPI_FUNC (PyObject * ) PyUnicodeDecodeError_GetEncoding (PyObject * a ) {
4044
4048
unimplemented ("PyUnicodeDecodeError_GetEncoding" ); exit (-1 );
@@ -4528,8 +4532,10 @@ PyAPI_FUNC(int) Py_AtExit(void (*a)(void)) {
4528
4532
PyAPI_FUNC (int ) Py_BytesMain (int a , char * * b ) {
4529
4533
unimplemented ("Py_BytesMain" ); exit (-1 );
4530
4534
}
4535
+ PyObject * (* __target__Py_CompileString )(const char * , const char * , int ) = NULL ;
4531
4536
PyAPI_FUNC (PyObject * ) Py_CompileString (const char * a , const char * b , int c ) {
4532
- unimplemented ("Py_CompileString" ); exit (-1 );
4537
+ PyObject * result = (PyObject * ) __target__Py_CompileString (a , b , c );
4538
+ return result ;
4533
4539
}
4534
4540
PyAPI_FUNC (PyObject * ) Py_CompileStringExFlags (const char * a , const char * b , int c , PyCompilerFlags * d , int e ) {
4535
4541
unimplemented ("Py_CompileStringExFlags" ); exit (-1 );
@@ -6248,6 +6254,7 @@ void initializeCAPIForwards(void* (*getAPI)(const char*)) {
6248
6254
__target__PyErr_SetNone = getAPI ("PyErr_SetNone" );
6249
6255
__target__PyErr_SetObject = getAPI ("PyErr_SetObject" );
6250
6256
__target__PyErr_SetString = getAPI ("PyErr_SetString" );
6257
+ __target__PyErr_WarnExplicit = getAPI ("PyErr_WarnExplicit" );
6251
6258
__target__PyErr_WriteUnraisable = getAPI ("PyErr_WriteUnraisable" );
6252
6259
__target__PyEval_CallObjectWithKeywords = getAPI ("PyEval_CallObjectWithKeywords" );
6253
6260
__target__PyEval_EvalCode = getAPI ("PyEval_EvalCode" );
@@ -6372,6 +6379,7 @@ void initializeCAPIForwards(void* (*getAPI)(const char*)) {
6372
6379
__target__PyType_GetSlot = getAPI ("PyType_GetSlot" );
6373
6380
__target__PyType_Modified = getAPI ("PyType_Modified" );
6374
6381
__target__PyType_Ready = getAPI ("PyType_Ready" );
6382
+ __target__PyUnicodeDecodeError_Create = getAPI ("PyUnicodeDecodeError_Create" );
6375
6383
__target__PyUnicode_Append = getAPI ("PyUnicode_Append" );
6376
6384
__target__PyUnicode_AppendAndDel = getAPI ("PyUnicode_AppendAndDel" );
6377
6385
__target__PyUnicode_AsASCIIString = getAPI ("PyUnicode_AsASCIIString" );
@@ -6406,6 +6414,7 @@ void initializeCAPIForwards(void* (*getAPI)(const char*)) {
6406
6414
__target__PyUnicode_InternInPlace = getAPI ("PyUnicode_InternInPlace" );
6407
6415
__target__PyUnicode_New = getAPI ("PyUnicode_New" );
6408
6416
__target__PyVectorcall_Call = getAPI ("PyVectorcall_Call" );
6417
+ __target__Py_CompileString = getAPI ("Py_CompileString" );
6409
6418
__target__Py_GetBuildInfo = getAPI ("Py_GetBuildInfo" );
6410
6419
__target__Py_GetCompiler = getAPI ("Py_GetCompiler" );
6411
6420
__target__Py_GetVersion = getAPI ("Py_GetVersion" );
0 commit comments