cinap_lenrekadd hg and python4bb9e2215 years agoHistory
7628 lines · 160.3 KB · C
RawDownload
static PyObject *gl_pdrs(PyObject *self, PyObject *args){	short arg1 ;	short arg2 ;	short arg3 ;	if (!getishortarg(args, 3, 0, &arg1))		return NULL;	if (!getishortarg(args, 3, 1, &arg2))		return NULL;	if (!getishortarg(args, 3, 2, &arg3))		return NULL;	pdrs( arg1 , arg2 , arg3 );	Py_INCREF(Py_None);	return Py_None;} /* void pmvs short s short s short s */ static PyObject *gl_pmvs(PyObject *self, PyObject *args){	short arg1 ;	short arg2 ;	short arg3 ;	if (!getishortarg(args, 3, 0, &arg1))		return NULL;	if (!getishortarg(args, 3, 1, &arg2))		return NULL;	if (!getishortarg(args, 3, 2, &arg3))		return NULL;	pmvs( arg1 , arg2 , arg3 );	Py_INCREF(Py_None);	return Py_None;} /* void pnts short s short s short s */ static PyObject *gl_pnts(PyObject *self, PyObject *args){	short arg1 ;	short arg2 ;	short arg3 ;	if (!getishortarg(args, 3, 0, &arg1))		return NULL;	if (!getishortarg(args, 3, 1, &arg2))		return NULL;	if (!getishortarg(args, 3, 2, &arg3))		return NULL;	pnts( arg1 , arg2 , arg3 );	Py_INCREF(Py_None);	return Py_None;} /* void rdrs short s short s short s */ static PyObject *gl_rdrs(PyObject *self, PyObject *args){	short arg1 ;	short arg2 ;	short arg3 ;	if (!getishortarg(args, 3, 0, &arg1))		return NULL;	if (!getishortarg(args, 3, 1, &arg2))		return NULL;	if (!getishortarg(args, 3, 2, &arg3))		return NULL;	rdrs( arg1 , arg2 , arg3 );	Py_INCREF(Py_None);	return Py_None;} /* void rmvs short s short s short s */ static PyObject *gl_rmvs(PyObject *self, PyObject *args){	short arg1 ;	short arg2 ;	short arg3 ;	if (!getishortarg(args, 3, 0, &arg1))		return NULL;	if (!getishortarg(args, 3, 1, &arg2))		return NULL;	if (!getishortarg(args, 3, 2, &arg3))		return NULL;	rmvs( arg1 , arg2 , arg3 );	Py_INCREF(Py_None);	return Py_None;} /* void rpdrs short s short s short s */ static PyObject *gl_rpdrs(PyObject *self, PyObject *args){	short arg1 ;	short arg2 ;	short arg3 ;	if (!getishortarg(args, 3, 0, &arg1))		return NULL;	if (!getishortarg(args, 3, 1, &arg2))		return NULL;	if (!getishortarg(args, 3, 2, &arg3))		return NULL;	rpdrs( arg1 , arg2 , arg3 );	Py_INCREF(Py_None);	return Py_None;} /* void rpmvs short s short s short s */ static PyObject *gl_rpmvs(PyObject *self, PyObject *args){	short arg1 ;	short arg2 ;	short arg3 ;	if (!getishortarg(args, 3, 0, &arg1))		return NULL;	if (!getishortarg(args, 3, 1, &arg2))		return NULL;	if (!getishortarg(args, 3, 2, &arg3))		return NULL;	rpmvs( arg1 , arg2 , arg3 );	Py_INCREF(Py_None);	return Py_None;} /* void xfpts short s short s short s */ static PyObject *gl_xfpts(PyObject *self, PyObject *args){	short arg1 ;	short arg2 ;	short arg3 ;	if (!getishortarg(args, 3, 0, &arg1))		return NULL;	if (!getishortarg(args, 3, 1, &arg2))		return NULL;	if (!getishortarg(args, 3, 2, &arg3))		return NULL;	xfpts( arg1 , arg2 , arg3 );	Py_INCREF(Py_None);	return Py_None;} /* void curorigin short s short s short s */ static PyObject *gl_curorigin(PyObject *self, PyObject *args){	short arg1 ;	short arg2 ;	short arg3 ;	if (!getishortarg(args, 3, 0, &arg1))		return NULL;	if (!getishortarg(args, 3, 1, &arg2))		return NULL;	if (!getishortarg(args, 3, 2, &arg3))		return NULL;	curorigin( arg1 , arg2 , arg3 );	Py_INCREF(Py_None);	return Py_None;} /* void cyclemap short s short s short s */ static PyObject *gl_cyclemap(PyObject *self, PyObject *args){	short arg1 ;	short arg2 ;	short arg3 ;	if (!getishortarg(args, 3, 0, &arg1))		return NULL;	if (!getishortarg(args, 3, 1, &arg2))		return NULL;	if (!getishortarg(args, 3, 2, &arg3))		return NULL;	cyclemap( arg1 , arg2 , arg3 );	Py_INCREF(Py_None);	return Py_None;} /* void patch float s[4*4] float s[4*4] float s[4*4] */ static PyObject *gl_patch(PyObject *self, PyObject *args){	float arg1 [ 4 ] [ 4 ] ;	float arg2 [ 4 ] [ 4 ] ;	float arg3 [ 4 ] [ 4 ] ;	if (!getifloatarray(args, 3, 0, 4 * 4 , (float *) arg1))		return NULL;	if (!getifloatarray(args, 3, 1, 4 * 4 , (float *) arg2))		return NULL;	if (!getifloatarray(args, 3, 2, 4 * 4 , (float *) arg3))		return NULL;	patch( arg1 , arg2 , arg3 );	Py_INCREF(Py_None);	return Py_None;} /* void splf long s float s[3*arg1] u_short s[arg1] */ static PyObject *gl_splf(PyObject *self, PyObject *args){	long arg1 ;	float (* arg2) [ 3 ] ;	unsigned short * arg3 ;	if (!getilongarraysize(args, 2, 0, &arg1))		return NULL;	arg1 = arg1 / 3;	if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)		return PyErr_NoMemory();	if (!getifloatarray(args, 2, 0, 3 * arg1 , (float *) arg2))		return NULL;	if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)		return PyErr_NoMemory();	if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))		return NULL;	splf( arg1 , arg2 , arg3 );	PyMem_DEL(arg2);	PyMem_DEL(arg3);	Py_INCREF(Py_None);	return Py_None;} /* void splf2 long s float s[2*arg1] u_short s[arg1] */ static PyObject *gl_splf2(PyObject *self, PyObject *args){	long arg1 ;	float (* arg2) [ 2 ] ;	unsigned short * arg3 ;	if (!getilongarraysize(args, 2, 0, &arg1))		return NULL;	arg1 = arg1 / 2;	if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL)		return PyErr_NoMemory();	if (!getifloatarray(args, 2, 0, 2 * arg1 , (float *) arg2))		return NULL;	if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)		return PyErr_NoMemory();	if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))		return NULL;	splf2( arg1 , arg2 , arg3 );	PyMem_DEL(arg2);	PyMem_DEL(arg3);	Py_INCREF(Py_None);	return Py_None;} /* void splfi long s long s[3*arg1] u_short s[arg1] */ static PyObject *gl_splfi(PyObject *self, PyObject *args){	long arg1 ;	long (* arg2) [ 3 ] ;	unsigned short * arg3 ;	if (!getilongarraysize(args, 2, 0, &arg1))		return NULL;	arg1 = arg1 / 3;	if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL)		return PyErr_NoMemory();	if (!getilongarray(args, 2, 0, 3 * arg1 , (long *) arg2))		return NULL;	if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)		return PyErr_NoMemory();	if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))		return NULL;	splfi( arg1 , arg2 , arg3 );	PyMem_DEL(arg2);	PyMem_DEL(arg3);	Py_INCREF(Py_None);	return Py_None;} /* void splf2i long s long s[2*arg1] u_short s[arg1] */ static PyObject *gl_splf2i(PyObject *self, PyObject *args){	long arg1 ;	long (* arg2) [ 2 ] ;	unsigned short * arg3 ;	if (!getilongarraysize(args, 2, 0, &arg1))		return NULL;	arg1 = arg1 / 2;	if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL)		return PyErr_NoMemory();	if (!getilongarray(args, 2, 0, 2 * arg1 , (long *) arg2))		return NULL;	if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)		return PyErr_NoMemory();	if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))		return NULL;	splf2i( arg1 , arg2 , arg3 );	PyMem_DEL(arg2);	PyMem_DEL(arg3);	Py_INCREF(Py_None);	return Py_None;} /* void splfs long s short s[3*arg1] u_short s[arg1] */ static PyObject *gl_splfs(PyObject *self, PyObject *args){	long arg1 ;	short (* arg2) [ 3 ] ;	unsigned short * arg3 ;	if (!getilongarraysize(args, 2, 0, &arg1))		return NULL;	arg1 = arg1 / 3;	if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL)		return PyErr_NoMemory();	if (!getishortarray(args, 2, 0, 3 * arg1 , (short *) arg2))		return NULL;	if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)		return PyErr_NoMemory();	if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))		return NULL;	splfs( arg1 , arg2 , arg3 );	PyMem_DEL(arg2);	PyMem_DEL(arg3);	Py_INCREF(Py_None);	return Py_None;} /* void splf2s long s short s[2*arg1] u_short s[arg1] */ static PyObject *gl_splf2s(PyObject *self, PyObject *args){	long arg1 ;	short (* arg2) [ 2 ] ;	unsigned short * arg3 ;	if (!getilongarraysize(args, 2, 0, &arg1))		return NULL;	arg1 = arg1 / 2;	if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL)		return PyErr_NoMemory();	if (!getishortarray(args, 2, 0, 2 * arg1 , (short *) arg2))		return NULL;	if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)		return PyErr_NoMemory();	if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))		return NULL;	splf2s( arg1 , arg2 , arg3 );	PyMem_DEL(arg2);	PyMem_DEL(arg3);	Py_INCREF(Py_None);	return Py_None;} /* void rpatch float s[4*4] float s[4*4] float s[4*4] float s[4*4] */ static PyObject *gl_rpatch(PyObject *self, PyObject *args){	float arg1 [ 4 ] [ 4 ] ;	float arg2 [ 4 ] [ 4 ] ;	float arg3 [ 4 ] [ 4 ] ;	float arg4 [ 4 ] [ 4 ] ;	if (!getifloatarray(args, 4, 0, 4 * 4 , (float *) arg1))		return NULL;	if (!getifloatarray(args, 4, 1, 4 * 4 , (float *) arg2))		return NULL;	if (!getifloatarray(args, 4, 2, 4 * 4 , (float *) arg3))		return NULL;	if (!getifloatarray(args, 4, 3, 4 * 4 , (float *) arg4))		return NULL;	rpatch( arg1 , arg2 , arg3 , arg4 );	Py_INCREF(Py_None);	return Py_None;} /* void ortho2 float s float s float s float s */ static PyObject *gl_ortho2(PyObject *self, PyObject *args){	float arg1 ;	float arg2 ;	float arg3 ;	float arg4 ;	if (!getifloatarg(args, 4, 0, &arg1))		return NULL;	if (!getifloatarg(args, 4, 1, &arg2))		return NULL;	if (!getifloatarg(args, 4, 2, &arg3))		return NULL;	if (!getifloatarg(args, 4, 3, &arg4))		return NULL;	ortho2( arg1 , arg2 , arg3 , arg4 );	Py_INCREF(Py_None);	return Py_None;} /* void rect float s float s float s float s */ static PyObject *gl_rect(PyObject *self, PyObject *args){	float arg1 ;	float arg2 ;	float arg3 ;	float arg4 ;	if (!getifloatarg(args, 4, 0, &arg1))		return NULL;	if (!getifloatarg(args, 4, 1, &arg2))		return NULL;	if (!getifloatarg(args, 4, 2, &arg3))		return NULL;	if (!getifloatarg(args, 4, 3, &arg4))		return NULL;	rect( arg1 , arg2 , arg3 , arg4 );	Py_INCREF(Py_None);	return Py_None;} /* void rectf float s float s float s float s */ static PyObject *gl_rectf(PyObject *self, PyObject *args){	float arg1 ;	float arg2 ;	float arg3 ;	float arg4 ;	if (!getifloatarg(args, 4, 0, &arg1))		return NULL;	if (!getifloatarg(args, 4, 1, &arg2))		return NULL;	if (!getifloatarg(args, 4, 2, &arg3))		return NULL;	if (!getifloatarg(args, 4, 3, &arg4))		return NULL;	rectf( arg1 , arg2 , arg3 , arg4 );	Py_INCREF(Py_None);	return Py_None;} /* void xfpt4 float s float s float s float s */ static PyObject *gl_xfpt4(PyObject *self, PyObject *args){	float arg1 ;	float arg2 ;	float arg3 ;	float arg4 ;	if (!getifloatarg(args, 4, 0, &arg1))		return NULL;	if (!getifloatarg(args, 4, 1, &arg2))		return NULL;	if (!getifloatarg(args, 4, 2, &arg3))		return NULL;	if (!getifloatarg(args, 4, 3, &arg4))		return NULL;	xfpt4( arg1 , arg2 , arg3 , arg4 );	Py_INCREF(Py_None);	return Py_None;} /* void textport short s short s short s short s */ static PyObject *gl_textport(PyObject *self, PyObject *args){	short arg1 ;	short arg2 ;	short arg3 ;	short arg4 ;	if (!getishortarg(args, 4, 0, &arg1))		return NULL;	if (!getishortarg(args, 4, 1, &arg2))		return NULL;	if (!getishortarg(args, 4, 2, &arg3))		return NULL;	if (!getishortarg(args, 4, 3, &arg4))		return NULL;	textport( arg1 , arg2 , arg3 , arg4 );	Py_INCREF(Py_None);	return Py_None;} /* void mapcolor short s short s short s short s */ static PyObject *gl_mapcolor(PyObject *self, PyObject *args){

Lines 4001–4500 of 7628. Previous lines