Update of
/cvsroot/playerstage/code/player/client_libs/libplayerc/bindings/python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3796
Modified Files:
playerc.i
Log Message:
applied patch 1741975
Index: playerc.i
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc/bindings/python/playerc.i,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** playerc.i 20 Mar 2007 07:30:42 -0000 1.23
--- playerc.i 9 Jul 2007 17:21:08 -0000 1.24
***************
*** 291,294 ****
--- 291,305 ----
}
+ %typemap(out) float [ANY]
+ {
+ int i;
+ $result = PyList_New($1_dim0);
+ for (i = 0; i < $1_dim0; i++)
+ {
+ PyObject *o = PyFloat_FromDouble((double) $1[i]);
+ PyList_SetItem($result,i,o);
+ }
+ }
+
%typemap(out) uint8_t [ANY]
{
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit