summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-10 15:41:19 (GMT)
committerGuido van Rossum <guido@python.org>1996-12-10 15:41:19 (GMT)
commitcaf783793db32b2766b3e26f1ca92540c89911d0 (patch)
treeac65ee716f9a35dbf5d219ed709f7d1516bac708
parentc1547d930fbae0d6630d119f7a9553f4eda531b8 (diff)
downloadcpython-caf783793db32b2766b3e26f1ca92540c89911d0.zip
cpython-caf783793db32b2766b3e26f1ca92540c89911d0.tar.gz
cpython-caf783793db32b2766b3e26f1ca92540c89911d0.tar.bz2
Added remaining declarations needed/used in glmodule.c; keeps gcc -Wall happy.
-rw-r--r--Include/cgensupport.h33
-rw-r--r--Modules/cgensupport.h33
2 files changed, 56 insertions, 10 deletions
diff --git a/Include/cgensupport.h b/Include/cgensupport.h
index 323919c..40b6a47 100644
--- a/Include/cgensupport.h
+++ b/Include/cgensupport.h
@@ -44,11 +44,34 @@ typedef char *string;
#define mknewfloatobject(x) PyFloat_FromDouble(x)
#define mknewcharobject(ch) Py_BuildValue("c", ch)
-extern int PyArg_GetObject Py_PROTO((PyObject *args, int nargs, int i, PyObject **p_a));
-extern int PyArg_GetLong Py_PROTO((PyObject *args, int nargs, int i, long *p_a));
-extern int PyArg_GetShort Py_PROTO((PyObject *args, int nargs, int i, short *p_a));
-extern int PyArg_GetFloat Py_PROTO((PyObject *args, int nargs, int i, float *p_a));
-extern int PyArg_GetString Py_PROTO((PyObject *args, int nargs, int i, string *p_a));
+extern int PyArg_GetObject Py_PROTO((PyObject *args, int nargs,
+ int i, PyObject **p_a));
+extern int PyArg_GetLong Py_PROTO((PyObject *args, int nargs,
+ int i, long *p_a));
+extern int PyArg_GetShort Py_PROTO((PyObject *args, int nargs,
+ int i, short *p_a));
+extern int PyArg_GetFloat Py_PROTO((PyObject *args, int nargs,
+ int i, float *p_a));
+extern int PyArg_GetString Py_PROTO((PyObject *args, int nargs,
+ int i, string *p_a));
+extern int PyArg_GetChar Py_PROTO((PyObject *args, int nargs,
+ int i, char *p_a));
+extern int PyArg_GetLongArray Py_PROTO((PyObject *args, int nargs,
+ int i, int n, long *p_a));
+extern int PyArg_GetShortArray Py_PROTO((PyObject *args, int nargs,
+ int i, int n, short *p_a));
+extern int PyArg_GetDoubleArray Py_PROTO((PyObject *args, int nargs,
+ int i, int n, double *p_a));
+extern int PyArg_GetFloatArray Py_PROTO((PyObject *args, int nargs,
+ int i, int n, float *p_a));
+extern int PyArg_GetLongArraySize Py_PROTO((PyObject *args, int nargs,
+ int i, long *p_a));
+extern int PyArg_GetShortArraySize Py_PROTO((PyObject *args, int nargs,
+ int i, short *p_a));
+extern int PyArg_GetDoubleArraySize Py_PROTO((PyObject *args, int nargs,
+ int i, double *p_a));
+extern int PyArg_GetFloatArraySize Py_PROTO((PyObject *args, int nargs,
+ int i, float *p_a));
#ifdef __cplusplus
}
diff --git a/Modules/cgensupport.h b/Modules/cgensupport.h
index 323919c..40b6a47 100644
--- a/Modules/cgensupport.h
+++ b/Modules/cgensupport.h
@@ -44,11 +44,34 @@ typedef char *string;
#define mknewfloatobject(x) PyFloat_FromDouble(x)
#define mknewcharobject(ch) Py_BuildValue("c", ch)
-extern int PyArg_GetObject Py_PROTO((PyObject *args, int nargs, int i, PyObject **p_a));
-extern int PyArg_GetLong Py_PROTO((PyObject *args, int nargs, int i, long *p_a));
-extern int PyArg_GetShort Py_PROTO((PyObject *args, int nargs, int i, short *p_a));
-extern int PyArg_GetFloat Py_PROTO((PyObject *args, int nargs, int i, float *p_a));
-extern int PyArg_GetString Py_PROTO((PyObject *args, int nargs, int i, string *p_a));
+extern int PyArg_GetObject Py_PROTO((PyObject *args, int nargs,
+ int i, PyObject **p_a));
+extern int PyArg_GetLong Py_PROTO((PyObject *args, int nargs,
+ int i, long *p_a));
+extern int PyArg_GetShort Py_PROTO((PyObject *args, int nargs,
+ int i, short *p_a));
+extern int PyArg_GetFloat Py_PROTO((PyObject *args, int nargs,
+ int i, float *p_a));
+extern int PyArg_GetString Py_PROTO((PyObject *args, int nargs,
+ int i, string *p_a));
+extern int PyArg_GetChar Py_PROTO((PyObject *args, int nargs,
+ int i, char *p_a));
+extern int PyArg_GetLongArray Py_PROTO((PyObject *args, int nargs,
+ int i, int n, long *p_a));
+extern int PyArg_GetShortArray Py_PROTO((PyObject *args, int nargs,
+ int i, int n, short *p_a));
+extern int PyArg_GetDoubleArray Py_PROTO((PyObject *args, int nargs,
+ int i, int n, double *p_a));
+extern int PyArg_GetFloatArray Py_PROTO((PyObject *args, int nargs,
+ int i, int n, float *p_a));
+extern int PyArg_GetLongArraySize Py_PROTO((PyObject *args, int nargs,
+ int i, long *p_a));
+extern int PyArg_GetShortArraySize Py_PROTO((PyObject *args, int nargs,
+ int i, short *p_a));
+extern int PyArg_GetDoubleArraySize Py_PROTO((PyObject *args, int nargs,
+ int i, double *p_a));
+extern int PyArg_GetFloatArraySize Py_PROTO((PyObject *args, int nargs,
+ int i, float *p_a));
#ifdef __cplusplus
}