[geos-devel] c api questions for SWIG

strk at refractions.net strk at refractions.net
Mon Jul 10 17:39:58 EDT 2006


On Mon, Jul 10, 2006 at 03:30:38PM -0600, Charlie Savage wrote:
> >I already renamed the enum to GEOSGeomTypes.
> 
> Hmm, let me resync again then.
> 
> >
> >>2.  Message handlers have this signature:
> >>
> >>   typedef void (*GEOSMessageHandler)(const char *fmt, ...);
> >>
> >>Are the ... parameters ever used (I didn't see any place where they 
> >>were).  If they are used, what are they?  If not, should they be removed?
> >
> >'...' is for variable args.
> 
> Yes, I know.  Is it used though, and if so, how?  I'm just trying to get 
> the exception handler correct.

I just went trought all calls and it's never used.
But I changed to use of it:

	FUNC("%s", const char*)

You can always bail out of you get different formats then '%s', but
I suggest you use the vsprintf set of functions from GNU lib.

--strk;




More information about the geos-devel mailing list