Open tbonfort opened 12 years ago
Author: unicoletti Date: 2006/09/01 - 09:34
Tamas,
I have reviewed all the .h files included in mapscript.i and I have
found that there are only a few unsafe usages of defines (and they
refer to the usual suspects, that is z/m members for points and geos).
In mapprimitive.h
line 74 (Definitely UNSAFE!!)
#ifdef USE_POINT_Z_M
double z;
double m;
#endif
line 100 (UNSAFE, but fixable):
#ifdef USE_GEOS
void *geometry;
#endif
Other suspicious usages could be in mapows.h, but at this time I am
not sure whether they are actually posing a problem.
I don't see an easy solution to the z/m defines, but I attach a patch
that removes the need for #ifdef USE_GEOS in mapprimitive.h. I have
made a couple of tests and it seems ok to me, but I want your valuable
feedback and Steve's approval before I commit it.
Umberto
On 8/31/06, Tamas Szekeres <szekerest@gmail.com> wrote:
> Hi Umberto,
>
> How your proposal will prevent from the need of settings the defines to SWIG?
> We have ifdefs in some of the headers (eg. in map.h) will continue to
> affect the interface generation.
>
> Tamas
>
Author: unicoletti Date: 2006/09/01 - 20:18
The patch has been applied to cvs HEAD.
I have run my usual batch of tests and they all pass.
I'm leaving POINT_Z_M alone for 4.10.
Author: unicoletti Date: 2006/09/01 - 20:20
Steve, assigning this bug to myself.
Author: unicoletti Date: 2011/03/19 - 18:37 old, closing as fixed. the z/m problem never came up again anyway
Reporter: unicoletti Date: 2006/09/01 - 09:30