[Python-checkins] python/dist/src/Modules almodule.c,1.37,1.38

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
2003年3月30日 13:49:23 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv25585/Modules
Modified Files:
	almodule.c 
Log Message:
SF patch #667548, Add some audio constants by Michael Pruett
Also remove a few unused variables. Built on IRIX 6.5.
Index: almodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/almodule.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** almodule.c	17 Jul 2002 16:30:35 -0000	1.37
--- almodule.c	30 Mar 2003 21:49:18 -0000	1.38
***************
*** 60,64 ****
 {
 	ALparamInfo info;
- 	PyObject *v;
 
 	if (pinfo == NULL) {
--- 60,63 ----
***************
*** 718,722 ****
 alp_ReadFrames(alpobject *self, PyObject *args)
 {
- 	void *samples;
 	int framecount;
 	PyObject *v;
--- 717,720 ----
***************
*** 1562,1566 ****
 {
 	int resource;
! 	PyObject *pvslist, *item;
 	ALpv *pvs;
 	ALparamInfo *pinfo;
--- 1560,1564 ----
 {
 	int resource;
! 	PyObject *pvslist;
 	ALpv *pvs;
 	ALparamInfo *pinfo;
***************
*** 2546,2549 ****
--- 2544,2553 ----
 	Py_DECREF(x);
 #endif
+ #ifdef AL_LOCKED
+ 	x = PyInt_FromLong((long) AL_LOCKED);
+ 	if (x == NULL || PyDict_SetItemString(d, "LOCKED", x) < 0)
+ 		goto error;
+ 	Py_DECREF(x);
+ #endif
 #ifdef AL_MASTER_CLOCK
 	x = PyInt_FromLong((long) AL_MASTER_CLOCK);
***************
*** 2696,2699 ****
--- 2700,2709 ----
 	Py_DECREF(x);
 #endif
+ #ifdef AL_NULL_INTERFACE
+ 	x = PyInt_FromLong((long) AL_NULL_INTERFACE);
+ 	if (x == NULL || PyDict_SetItemString(d, "NULL_INTERFACE", x) < 0)
+ 		goto error;
+ 	Py_DECREF(x);
+ #endif
 #ifdef AL_NULL_RESOURCE
 	x = PyInt_FromLong((long) AL_NULL_RESOURCE);
***************
*** 2702,2705 ****
--- 2712,2721 ----
 	Py_DECREF(x);
 #endif
+ #ifdef AL_OPTICAL_IF_TYPE
+ 	x = PyInt_FromLong((long) AL_OPTICAL_IF_TYPE);
+ 	if (x == NULL || PyDict_SetItemString(d, "OPTICAL_IF_TYPE", x) < 0)
+ 		goto error;
+ 	Py_DECREF(x);
+ #endif
 #ifdef AL_OUTPUT_COUNT
 	x = PyInt_FromLong((long) AL_OUTPUT_COUNT);
***************
*** 3047,3050 ****
--- 3063,3072 ----
 	x = PyInt_FromLong((long) AL_SHORT_NAME);
 	if (x == NULL || PyDict_SetItemString(d, "SHORT_NAME", x) < 0)
+ 		goto error;
+ 	Py_DECREF(x);
+ #endif
+ #ifdef AL_SMPTE272M_IF_TYPE
+ 	x = PyInt_FromLong((long) AL_SMPTE272M_IF_TYPE);
+ 	if (x == NULL || PyDict_SetItemString(d, "SMPTE272M_IF_TYPE", x) < 0)
 		goto error;
 	Py_DECREF(x);

AltStyle によって変換されたページ (->オリジナル) /