Changeset 14441

Show
Ignore:
Timestamp:
05/10/08 17:45:23 (2 months ago)
Author:
rouault
Message:

use more specific types for style, spatial reference and geometry types in DEBUG mode

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/ogr/ogr_api.h

    r14435 r14441  
    4747/*      Geometry related functions (ogr_geometry.h)                     */ 
    4848/* -------------------------------------------------------------------- */ 
     49#ifdef DEBUG 
     50typedef struct OGRGeometryHS *OGRGeometryH; 
     51#else 
    4952typedef void *OGRGeometryH; 
     53#endif 
    5054 
    5155#ifndef _DEFINED_OGRSpatialReferenceH 
    5256#define _DEFINED_OGRSpatialReferenceH 
    5357 
     58#ifdef DEBUG 
     59typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH; 
     60typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH; 
     61#else 
    5462typedef void *OGRSpatialReferenceH;                                
    5563typedef void *OGRCoordinateTransformationH; 
     64#endif 
    5665 
    5766#endif 
     
    370379/* -------------------------------------------------------------------- */ 
    371380 
     381#ifdef DEBUG 
     382typedef struct OGRStyleMgrHS *OGRStyleMgrH; 
     383typedef struct OGRStyleToolHS *OGRStyleToolH; 
     384#else 
    372385typedef void *OGRStyleMgrH; 
    373386typedef void *OGRStyleToolH; 
    374  
     387#endif 
    375388 
    376389/* OGRStyleMgr */ 
  • trunk/gdal/ogr/ogr_srs_api.h

    r14308 r14441  
    242242#define _DEFINED_OGRSpatialReferenceH 
    243243 
     244#ifdef DEBUG 
     245typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH; 
     246typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH; 
     247#else 
    244248typedef void *OGRSpatialReferenceH;                                
    245249typedef void *OGRCoordinateTransformationH; 
     250#endif 
    246251 
    247252#endif