Skip to content

Commit 38fbe7b

Browse files
committed
sprinkle MUST_INLINE on to base functions dealing with varargs
1 parent 910e62d commit 38fbe7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ PyObject* PyTruffle_GetArg(positional_argstack* p, PyObject* kwds, char** kwdnam
105105

106106
/* argparse */
107107
UPCALL_ID(__bool__);
108-
int _PyTruffleArg_ParseTupleAndKeywords(PyObject *argv, PyObject *kwds, const char *format, char **kwdnames, va_list va, void** poly_args, int offset) {
108+
MUST_INLINE static int _PyTruffleArg_ParseTupleAndKeywords(PyObject *argv, PyObject *kwds, const char *format, char **kwdnames, va_list va, void** poly_args, int offset) {
109109
PyObject* arg;
110110
int format_idx = 0;
111111
unsigned char rest_optional = 0;
@@ -450,7 +450,7 @@ typedef struct _build_stack {
450450
struct _build_stack* prev;
451451
} build_stack;
452452

453-
PyObject* _PyTruffle_BuildValue(const char* format, va_list va, void** poly_args, int offset) {
453+
MUST_INLINE static PyObject* _PyTruffle_BuildValue(const char* format, va_list va, void** poly_args, int offset) {
454454
PyObject* (*converter)(void*) = NULL;
455455
char argchar[2] = {'\0'};
456456
unsigned int format_idx = 0;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ PyObject * PyUnicode_FromStringAndSize(const char *u, Py_ssize_t size) {
112112
return to_sulong(polyglot_from_string_n(u, size, SRC_CS));
113113
}
114114

115-
PyObject* PyTruffle_Unicode_FromFormat(const char *fmt, va_list va, void **args, int argc) {
115+
MUST_INLINE PyObject* PyTruffle_Unicode_FromFormat(const char *fmt, va_list va, void **args, int argc) {
116116
char* fmtcpy = strdup(fmt);
117117
char* c = fmtcpy;
118118

0 commit comments

Comments
 (0)