Re: [Cython] In-place division in memoryview, ndarray causes compiler error

2012-08-20 Thread Stefan Behnel
Matthew Brett, 15.08.2012 20:38: > For this file: > > > def div1(int[:] A): > A[0] /= 1 > > > or this one: > > > def div2(object[int, ndim=1] A): > A[0] /= 1 > > > I get: > > File > "/Users/mb312/usr/local/lib/python2.7/site-packages/Cython/Compiler/Nodes.py", > line 354, in gen

[Cython] new arrayarray.h header file not C99 compatible

2012-08-20 Thread Stefan Behnel
Hi, I'm getting test build failures with the new arrayarray.h header file when I enable "--std=c89" or "c99" in the CFLAGS: """ memoryview_inplace_division.c:877: warning: declaration does not declare anything memoryview_inplace_division.c:893: warning: declaration does not declare anything memor

Re: [Cython] new arrayarray.h header file not C99 compatible

2012-08-20 Thread Stefan Behnel
Stefan Behnel, 20.08.2012 15:39: > I'm getting test build failures with the new arrayarray.h header file when > I enable "--std=c89" or "c99" in the CFLAGS: > > """ > memoryview_inplace_division.c:877: warning: declaration does not declare > anything > memoryview_inplace_division.c:893: warning: d

Re: [Cython] new arrayarray.h header file not C99 compatible

2012-08-20 Thread Robert Bradshaw
On Mon, Aug 20, 2012 at 6:39 AM, Stefan Behnel wrote: > Hi, > > I'm getting test build failures with the new arrayarray.h header file when > I enable "--std=c89" or "c99" in the CFLAGS: > > """ > memoryview_inplace_division.c:877: warning: declaration does not declare > anything > memoryview_inpla

Re: [Cython] new arrayarray.h header file not C99 compatible

2012-08-20 Thread Stefan Behnel
Robert Bradshaw, 20.08.2012 17:54: > On Mon, Aug 20, 2012 at 6:39 AM, Stefan Behnel wrote: >> I'm getting test build failures with the new arrayarray.h header file when >> I enable "--std=c89" or "c99" in the CFLAGS: >> >> """ >> memoryview_inplace_division.c:877: warning: declaration does not decl

Re: [Cython] new arrayarray.h header file not C99 compatible

2012-08-20 Thread Robert Bradshaw
On Mon, Aug 20, 2012 at 9:10 AM, Stefan Behnel wrote: > Robert Bradshaw, 20.08.2012 17:54: >> On Mon, Aug 20, 2012 at 6:39 AM, Stefan Behnel wrote: >>> I'm getting test build failures with the new arrayarray.h header file when >>> I enable "--std=c89" or "c99" in the CFLAGS: >>> >>> """ >>> memory

Re: [Cython] C++ STL iteration bugs

2012-08-20 Thread Stefan Behnel
Robert Bradshaw, 12.08.2012 09:00: > On Sat, Aug 11, 2012 at 1:19 PM, Stefan Behnel wrote: >> I ran into a couple of problems with the new C++ STL integration, just >> dumping them here for now. >> >> Invalid C code when using a stack allocated C++ vector inside of a >> generator, also lacking type

Re: [Cython] C++ STL iteration bugs

2012-08-20 Thread Stefan Behnel
Stefan Behnel, 20.08.2012 20:55: > Robert Bradshaw, 12.08.2012 09:00: >> On Sat, Aug 11, 2012 at 1:19 PM, Stefan Behnel wrote: >>> I ran into a couple of problems with the new C++ STL integration, just >>> dumping them here for now. >>> >>> Invalid C code when using a stack allocated C++ vector ins

[Cython] two remaining test failures before the release

2012-08-20 Thread Stefan Behnel
Hi, we are now down to two test failures in the NumPy memoryview test: https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests/647/testReport/ I'm going to make a "final" :) pre-release when they are fixed, so please have a look. Stefan __