[postgis-devel] Use of "bool" in C
Paul Ramsey
pramsey at opengeo.org
Wed Jun 22 13:34:48 PDT 2011
Hunt through the PgSQL src a bit, I think bool is a typedef in
there... so we do get to use it when we have the pgsql headers in
place. But not when you pull back into liblwgeom.
P
On Wed, Jun 22, 2011 at 1:33 PM, Bryce L Nordgren <bnordgren at gmail.com> wrote:
>
>
> On Wed, Jun 22, 2011 at 7:02 PM, Paul Ramsey <pramsey at opengeo.org> wrote:
>>
>> Swtich bools to ints, we should aim to be a pure C project... I wonder
>> what C++ bits we have around. We used to have to compile the
>> GEOS/PostGIS bridge code inside postgis before the GEOS c-api was
>> added. At this point we should be able to compile pure-C.
>
> Was exposing the private API in lwgeom_transform.c when I discovered a
> "callback" which returns bool. I'm not sure it's safe for me to touch so I'm
> leaving it alone. What does postgresql expect?
>
> static bool
> PROJ4SRSCacheIsEmpty(MemoryContext context) ;
>
> I take back what I said about postgis being compiled with g++. My make line
> shows gcc and a ton of options. I don't know what the difference between
> compiling in the two directories is.
>
> Bryce
>
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>
>
More information about the postgis-devel
mailing list