mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
4c92fc3405
Partially address: https://github.com/Unidata/netcdf-c/issues/1056 Currently, some of the entries in the dispatch table are conditional'd on USE_NETCDF4. As a step in upgrading the dispatch table for use with user-defined tables, we remove that conditional. This means that all dispatch tables must implement the netcdf-4 specific functions even if only to make them return NC_ENOTNC4. To simplify this, a set of default functions are defined in libdispatch/dnotnc4.c to provide this behavior. The file libdispatch/dnotnc3.c is also relevant to this. The primary fix is to modify the various dispatch tables to remove the conditional and use the functions in libdispatch/dnotnc4.c as appropriate. In practice, all of the existing tables are prepared to handle this, so the only real change is to remove the conditionals. Misc. Unrelated fixes 1. Fix some annoying warnings in ncvalidator. Notes: 1. This has not been tested with either pnetcdf or hdf4 enabled. When those are enabled, it is possible that there are still some conditionals that need to be fixed. |
||
---|---|---|
.. | ||
attr.m4 | ||
CMakeLists.txt | ||
depend | ||
dim.c | ||
ffio.c | ||
httpio.c | ||
lookup3.c | ||
Makefile.am | ||
memio.c | ||
mmapio.c | ||
nc3dispatch.c | ||
nc3internal.c | ||
ncFile.c | ||
ncio.c | ||
ncio.h | ||
ncstdio.c | ||
ncstdio.h | ||
ncx_cray.c | ||
ncx.h | ||
ncx.m4 | ||
posixio.c | ||
pstdint.h | ||
putget.m4 | ||
t_ncio.c | ||
t_ncio.in | ||
t_ncxx.m4 | ||
test_nc.sav | ||
v1hpg.c | ||
var.c | ||
winceio.c | ||
XGetopt.c |