[Numpy-tickets] [NumPy] #620: Error in the typemaps in numpy.i

NumPy numpy-tickets@scipy....
Fri Nov 23 01:33:13 CST 2007

#620: Error in the typemaps in numpy.i
 Reporter:  matthieu.brucher  |       Owner:  somebody
     Type:  defect            |      Status:  new     
 Priority:  high              |   Milestone:          
Component:  Other             |     Version:  none    
 Severity:  critical          |    Keywords:          
 Some typemaps are not C89 compatible (variables are declared inside a
 block and not at its beginning).
 For instance :

   (PyArrayObject* array=NULL, int is_new_object=0)
   array = obj_to_array_contiguous_allow_conversion($input, DATA_TYPECODE,
   npy_intp size[1] = { $1_dim0 };
   if (!array || !require_dimensions(array, 1) || !require_size(array,
 size, 1)) SWIG_fail;
   $1 = ($1_ltype) array_data(array);

 size should have been declared first.

Ticket URL: <http://scipy.org/scipy/numpy/ticket/620>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list