Update of 
/cvsroot/playerstage/code/player/client_libs/libplayerc/bindings/python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3923

Modified Files:
      Tag: release-2-0-patches
        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.18.2.1
retrieving revision 1.18.2.2
diff -C2 -d -r1.18.2.1 -r1.18.2.2
*** playerc.i   9 Jun 2006 18:13:49 -0000       1.18.2.1
--- playerc.i   9 Jul 2007 17:21:17 -0000       1.18.2.2
***************
*** 226,229 ****
--- 226,240 ----
  }
  
+ %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

Reply via email to