22.05.2015, 11:38, Ari Jolma kirjoitti:
It seems that there are quite a few interface methods with two versions where the only difference is whether GIntBig is used or not. Also some methods do not have GIntBig when they actually should use it since it is in the GDAL API.

I found out that at least in Swig Perl default typemaps have long long and unsigned long long. Thus using GIntBig should mostly be just the case of saying

%apply (long long) { GIntBig };

At least Python, Java and CSharp seem to have default typemaps for long long and unsigned long long.

However, what GIntBig really is, is a configure time decision. That should be somehow propagated to the bindings.

I must also say that we're loosing (have lost?) the benefit of having a single set of "language independent" interface files because of all the #ifdefs in them. It might be easier to have only separate sets and then manually copy paste and edit when new things are added.

Ari


Ari


_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to