mirror of
https://github.com/python/cpython.git
synced 2025-12-07 17:57:56 +00:00
Moved rename2's macros relevant to this module here and added comment
about the file's obsolescence.
This commit is contained in:
parent
1875247549
commit
1818b7702b
2 changed files with 30 additions and 0 deletions
|
|
@ -37,6 +37,8 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
/* Definitions used by cgen output */
|
/* Definitions used by cgen output */
|
||||||
|
|
||||||
|
/* XXX This file is obsolete. It is *only* used by glmodule.c. */
|
||||||
|
|
||||||
typedef char *string;
|
typedef char *string;
|
||||||
|
|
||||||
#define mknewlongobject(x) PyInt_FromLong(x)
|
#define mknewlongobject(x) PyInt_FromLong(x)
|
||||||
|
|
@ -44,6 +46,19 @@ typedef char *string;
|
||||||
#define mknewfloatobject(x) PyFloat_FromDouble(x)
|
#define mknewfloatobject(x) PyFloat_FromDouble(x)
|
||||||
#define mknewcharobject(ch) Py_BuildValue("c", ch)
|
#define mknewcharobject(ch) Py_BuildValue("c", ch)
|
||||||
|
|
||||||
|
#define getichararg PyArg_GetChar
|
||||||
|
#define getidoublearray PyArg_GetDoubleArray
|
||||||
|
#define getifloatarg PyArg_GetFloat
|
||||||
|
#define getifloatarray PyArg_GetFloatArray
|
||||||
|
#define getilongarg PyArg_GetLong
|
||||||
|
#define getilongarray PyArg_GetLongArray
|
||||||
|
#define getilongarraysize PyArg_GetLongArraySize
|
||||||
|
#define getiobjectarg PyArg_GetObject
|
||||||
|
#define getishortarg PyArg_GetShort
|
||||||
|
#define getishortarray PyArg_GetShortArray
|
||||||
|
#define getishortarraysize PyArg_GetShortArraySize
|
||||||
|
#define getistringarg PyArg_GetString
|
||||||
|
|
||||||
extern int PyArg_GetObject Py_PROTO((PyObject *args, int nargs,
|
extern int PyArg_GetObject Py_PROTO((PyObject *args, int nargs,
|
||||||
int i, PyObject **p_a));
|
int i, PyObject **p_a));
|
||||||
extern int PyArg_GetLong Py_PROTO((PyObject *args, int nargs,
|
extern int PyArg_GetLong Py_PROTO((PyObject *args, int nargs,
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
/* Definitions used by cgen output */
|
/* Definitions used by cgen output */
|
||||||
|
|
||||||
|
/* XXX This file is obsolete. It is *only* used by glmodule.c. */
|
||||||
|
|
||||||
typedef char *string;
|
typedef char *string;
|
||||||
|
|
||||||
#define mknewlongobject(x) PyInt_FromLong(x)
|
#define mknewlongobject(x) PyInt_FromLong(x)
|
||||||
|
|
@ -44,6 +46,19 @@ typedef char *string;
|
||||||
#define mknewfloatobject(x) PyFloat_FromDouble(x)
|
#define mknewfloatobject(x) PyFloat_FromDouble(x)
|
||||||
#define mknewcharobject(ch) Py_BuildValue("c", ch)
|
#define mknewcharobject(ch) Py_BuildValue("c", ch)
|
||||||
|
|
||||||
|
#define getichararg PyArg_GetChar
|
||||||
|
#define getidoublearray PyArg_GetDoubleArray
|
||||||
|
#define getifloatarg PyArg_GetFloat
|
||||||
|
#define getifloatarray PyArg_GetFloatArray
|
||||||
|
#define getilongarg PyArg_GetLong
|
||||||
|
#define getilongarray PyArg_GetLongArray
|
||||||
|
#define getilongarraysize PyArg_GetLongArraySize
|
||||||
|
#define getiobjectarg PyArg_GetObject
|
||||||
|
#define getishortarg PyArg_GetShort
|
||||||
|
#define getishortarray PyArg_GetShortArray
|
||||||
|
#define getishortarraysize PyArg_GetShortArraySize
|
||||||
|
#define getistringarg PyArg_GetString
|
||||||
|
|
||||||
extern int PyArg_GetObject Py_PROTO((PyObject *args, int nargs,
|
extern int PyArg_GetObject Py_PROTO((PyObject *args, int nargs,
|
||||||
int i, PyObject **p_a));
|
int i, PyObject **p_a));
|
||||||
extern int PyArg_GetLong Py_PROTO((PyObject *args, int nargs,
|
extern int PyArg_GetLong Py_PROTO((PyObject *args, int nargs,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue