~sharpie/geos/3.3.2

« back to all changes in this revision

Viewing changes to capi/geos_c.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine, Alan Boudreault, Francesco Paolo Lovergine
  • Date: 2011-03-03 13:40:04 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110303134004-ocs5d23cuont0q61
Tags: 3.2.2-1
[ Alan Boudreault ]
* New upstream release.

[ Francesco Paolo Lovergine ]
* Policy set to 3.9.1, without changes.
* Merged log for post squeeze release.
* Repository moved to git and changed Vcs-* fields as required.
* Source format moved to 3.0 with quilt support.
* Policy changed to 3.9.1, without changes.
* Added ${misc:Depends} to bin pkgs due to dh use.
* Added -dbg package for debugging symbols.
  (closes: #582273)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/************************************************************************
2
2
 *
3
 
 * $Id: geos_c.cpp 2742 2009-11-26 18:29:56Z warmerdam $
 
3
 * $Id: geos_c.cpp 2975 2010-04-17 21:55:53Z strk $
4
4
 *
5
5
 * C-Wrapper for GEOS library
6
6
 *
85
85
 
86
86
extern "C" {
87
87
 
 
88
GEOSMessageHandler
 
89
GEOSContext_setNoticeHandler_r(GEOSContextHandle_t extHandle, GEOSMessageHandler nf);
 
90
GEOSMessageHandler
 
91
GEOSContext_setErrorHandler_r(GEOSContextHandle_t extHandle, GEOSMessageHandler nf);
 
92
 
88
93
void
89
94
initGEOS (GEOSMessageHandler nf, GEOSMessageHandler ef)
90
95
{
91
 
    handle = initGEOS_r( nf, ef );
 
96
    if ( ! handle )
 
97
    {
 
98
        handle = initGEOS_r( nf, ef );
 
99
    }
 
100
    else
 
101
    {
 
102
        GEOSContext_setNoticeHandler_r(handle, nf);
 
103
        GEOSContext_setErrorHandler_r(handle, ef);
 
104
    }
92
105
}
93
106
 
94
107
void