Waited for the weekend to do this, heres a patch on inkscapes current source which converts dynamic sized arrays to std::vector's.
http://www.graphicall.org/ftp/ideasman42/clang_compat_r10398.diff
if this can be committed there is only 2 multi dimensional arrays to figure out what to do with, I tried using vectors here too but it didn't work using some examples I found online but rather try solve this in a separate patch.
On Mon, Jun 27, 2011 at 7:58 AM, Jasper van de Gronde <th.v.d.gronde@...528...> wrote:
On 27-06-11 05:44, Campbell Barton wrote:
... So my question is: Would you accept patches to replace variable length arrays with heap allocations? (val = new Type[size]), delete[] val I can send in patches for it, there are only 5 or so.
Yes, please :) (Although I'd like to echo the earlier comment that it might be better to use std::vector in most cases. Just trying to let you know that this IS interesting.)