Commit 35e2fb99 authored by Armin Rigo's avatar Armin Rigo
Browse files

Rename 'tuple_new' to '_PyPy_tuple_new' to follow the naming convention of

exported symbols in libpypy-c.so.
parent 7fd34a4a2b89
......@@ -1195,7 +1195,7 @@ def attach_c_functions(space, eci, prefix):
'_PyPy_get_PyOS_InputHook', [], FUNCPTR,
compilation_info=eci, _nowrapper=True)
state.C.tuple_new = rffi.llexternal(
'tuple_new', [PyTypeObjectPtr, PyObject, PyObject], PyObject,
'_PyPy_tuple_new', [PyTypeObjectPtr, PyObject, PyObject], PyObject,
compilation_info=eci, _nowrapper=True)
def init_function(func):
......
......@@ -18,7 +18,7 @@ typedef struct {
PyAPI_FUNC(PyObject *) PyTuple_New(Py_ssize_t size);
PyAPI_FUNC(void) _PyPy_tuple_dealloc(PyObject *);
PyAPI_FUNC(PyObject *) tuple_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
PyAPI_FUNC(PyObject *) _PyPy_tuple_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
/* defined in varargswrapper.c */
PyAPI_FUNC(PyObject *) PyTuple_Pack(Py_ssize_t, ...);
......
......@@ -94,7 +94,7 @@ static PyObject *
tuple_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
PyObject *
tuple_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
_PyPy_tuple_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
PyObject *arg = NULL;
static char *kwlist[] = {"sequence", 0};
......@@ -117,7 +117,7 @@ tuple_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
Py_ssize_t i, n;
assert(PyType_IsSubtype(type, &PyTuple_Type));
tmp = tuple_new(&PyTuple_Type, args, kwds);
tmp = _PyPy_tuple_new(&PyTuple_Type, args, kwds);
if (tmp == NULL)
return NULL;
assert(PyTuple_Check(tmp));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment