[geos-devel] Thread safe error handling
Pepijn Van Eeckhoudt
pepijn at vaneeckhoudt.net
Mon Sep 9 08:56:39 PDT 2013
On ma, 2013-09-09 at 16:04 +0200, Sandro Santilli wrote:
> On Mon, Sep 09, 2013 at 03:44:16PM +0200, Pepijn Van Eeckhoudt wrote:
>
> > You mean https://github.com/libgeos/libgeos.git right? That's what I
> > cloned from.
>
> Yes, sorry.
>
> > In the version of geos_ts_c.cpp I'm looking at
> > GEOSContextHandleInternal_t is a typedef for struct
> > GEOSContextHandleInternal. I can change it to be a class if you like.
> >
> > Are we talking about the same GEOSContextHandleInternal_t?
>
> Yes, same type.
>
> Struct and class are the same in C++.
> Only difference is in the default access to members being private
> for class and public for struct.
I modified the patch as you suggested and submitted it as a pull request
via github. NOTICE_MESSAGE and ERROR_MESSAGE are now methods on
GEOSContextHandleInternal_t.
I didn't change the casing of NOTICE_MESSAGE and ERROR_MESSAGE to keep
the scope of patch as small as possible.
Pepijn
More information about the geos-devel
mailing list