Opened 8 years ago
Closed 5 years ago
#6508 closed enhancement (wontfix)
API: Can we drop the ifdef for VSIL_STRICT_ENFORCE and just always have it be the struct?
Reported by: | Kurt Schwehr | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | closed_because_of_github_migration |
Component: | default | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: |
Description
What drawbacks, if any are there to just going with what is within the VSIL_STRICT_ENFORCE?
-
cpl_vsi.h
svn diff cpl_vsi.h
124 124 typedef GUIntBig vsi_l_offset; 125 125 #define VSI_L_OFFSET_MAX GUINTBIG_MAX 126 126 127 /* Make VSIL_STRICT_ENFORCE active in DEBUG builds */128 #ifdef DEBUG129 #define VSIL_STRICT_ENFORCE130 #endif131 132 #ifdef VSIL_STRICT_ENFORCE133 127 typedef struct _VSILFILE VSILFILE; 134 #else135 typedef FILE VSILFILE;136 #endif137 128 138 129 VSILFILE CPL_DLL * VSIFOpenL( const char *, const char * ) CPL_WARN_UNUSED_RESULT; 139 130 VSILFILE CPL_DLL * VSIFOpenExL( const char *, const char *, int ) CPL_WARN_UNUSED_RESULT;
Change History (3)
comment:1 by , 8 years ago
comment:2 by , 6 years ago
Summary: | Can we drop the ifdef for VSIL_STRICT_ENFORCE and just always have it be the struct? → API: Can we drop the ifdef for VSIL_STRICT_ENFORCE and just always have it be the struct? |
---|
comment:3 by , 5 years ago
Milestone: | → closed_because_of_github_migration |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.
Note:
See TracTickets
for help on using tickets.
It has 2 impacts : it slightly changes the C++ ABI (OK), and could potentially cause compilation issues for external code (since GDAL code must be OK now) that would use FILE* when using VSIFOpenL(). This should be documented in the MIGRATION_GUIDE.