8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original ticket http://projects.scipy.org/numpy/ticket/620 on 2007-11-23 by trac user matthieu.brucher, assigned to @stefanv.
Some typemaps are not C89 compatible (variables are declared inside a block and not at its beginning). For instance :
%typemap(in) (DATA_TYPE IN_ARRAY1[ANY]) (PyArrayObject* array=NULL, int is_new_object=0) { array = obj_to_array_contiguous_allow_conversion($input, DATA_TYPECODE, &is_new_object); 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.
The text was updated successfully, but these errors were encountered:
Attachment added by trac user matthieu.brucher on 2007-11-23: numpy.patch
Sorry, something went wrong.
Milestone changed to 1.0.5 by @stefanv on 2007-11-23
1.0.5
@stefanv wrote on 2007-11-23
Thanks! Applied in r4493.
No branches or pull requests
Original ticket http://projects.scipy.org/numpy/ticket/620 on 2007-11-23 by trac user matthieu.brucher, assigned to @stefanv.
Some typemaps are not C89 compatible (variables are declared inside a block and not at its beginning).
For instance :
%typemap(in)
(DATA_TYPE IN_ARRAY1[ANY])
(PyArrayObject* array=NULL, int is_new_object=0)
{
array = obj_to_array_contiguous_allow_conversion($input, DATA_TYPECODE, &is_new_object);
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.
The text was updated successfully, but these errors were encountered: