Skip to content

Commit ece116c

Browse files
committed
export more native functions in python-native.dll for windows
1 parent c656a28 commit ece116c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

graalpython/com.oracle.graal.python.cext/src/modsupport.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ PyAPI_FUNC(int) _PyArg_VaParse_SizeT(PyObject *, const char *, va_list);
5252
PyAPI_FUNC(int) _PyArg_VaParseTupleAndKeywords_SizeT(PyObject *, PyObject *,
5353
const char *, char **, va_list);
5454
PyAPI_FUNC(int) _PyArg_VaParseTupleAndKeywordsFast_SizeT(PyObject *, PyObject *, struct _PyArg_Parser *, va_list);
55+
PyAPI_FUNC(int) _PyArg_ParseTupleAndKeywordsFast_SizeT(PyObject *, PyObject *, struct _PyArg_Parser *, ...);
56+
PyAPI_FUNC(int) _PyArg_ParseStack_SizeT(PyObject **, Py_ssize_t, const char*, ...);
5557

5658
static int getbuffer(PyObject *arg, Py_buffer *view, const char **errmsg) {
5759
if (PyObject_GetBuffer(arg, view, PyBUF_SIMPLE) != 0) {

graalpython/com.oracle.graal.python.cext/src/pystrcmp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "Python.h"
1010

11-
int
11+
PyAPI_FUNC(int)
1212
PyOS_mystrnicmp(const char *s1, const char *s2, Py_ssize_t size)
1313
{
1414
const unsigned char *p1, *p2;
@@ -23,7 +23,7 @@ PyOS_mystrnicmp(const char *s1, const char *s2, Py_ssize_t size)
2323
return tolower(*p1) - tolower(*p2);
2424
}
2525

26-
int
26+
PyAPI_FUNC(int)
2727
PyOS_mystricmp(const char *s1, const char *s2)
2828
{
2929
const unsigned char *p1 = (const unsigned char *)s1;

0 commit comments

Comments
 (0)