Re: [gdal-dev] Of errors and their treatment in bindings

2010-09-18 Thread Even Rouault
> > IMHO README.typemaps seems outdated and not even always used. For example: > > %typemap(out) (retStringAndCPLFree*) should be added and > Python uses > out (char **out_ppsz_and_free) > instead of > out (char **CSL) > which is mentioned in the README.typemaps My fault, I wasn't even aware tha

Re: [gdal-dev] Of errors and their treatment in bindings

2010-09-18 Thread Ari Jolma
On 09/18/2010 04:43 AM, Howard Butler wrote: On Sep 17, 2010, at 7:12 AM, Ari Jolma wrote: Folks, I added binding to VSIStatL (my idea is to start using ReadDir from GDAL and I need to know if something is a file or a directory). Why not use the more natural (to you the Perl progra

Re: [gdal-dev] Of errors and their treatment in bindings

2010-09-18 Thread Ari Jolma
On 09/18/2010 04:43 AM, Howard Butler wrote: On Sep 17, 2010, at 7:12 AM, Ari Jolma wrote: Folks, I added binding to VSIStatL (my idea is to start using ReadDir from GDAL and I need to know if something is a file or a directory). Why not use the more natural (to you the Perl progra

Re: [gdal-dev] Of errors and their treatment in bindings

2010-09-17 Thread Howard Butler
On Sep 17, 2010, at 7:12 AM, Ari Jolma wrote: > Folks, > > I added binding to VSIStatL (my idea is to start using ReadDir from GDAL and > I need to know if something is a file or a directory). Why not use the more natural (to you the Perl programmer) facilities your language provides for dete

[gdal-dev] Of errors and their treatment in bindings

2010-09-17 Thread Ari Jolma
Folks, I added binding to VSIStatL (my idea is to start using ReadDir from GDAL and I need to know if something is a file or a directory). That requires, in my mind, a new typemap, which I call RETURN_NONE_TRUE_IS_ERROR as the VSIStatL in port returns 0 on success but it does not call CPLErr