Skip to content

Commit fc4bfc6

Browse files
committed
Merge branch 'dispatchversion.dmh' of https://github.com/DennisHeimbigner/netcdf-c into 4.8.0-wellspring-prs.wif
2 parents ffa8a70 + f75c1c4 commit fc4bfc6

15 files changed

Lines changed: 46 additions & 46 deletions

CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ SET(PACKAGE_VERSION ${VERSION})
3737

3838
# Version of the dispatch table. This must match the value in
3939
# configure.ac.
40-
SET(NC_DISPATCH_VERSION 2)
40+
SET(NC_DISPATCH_VERSION 3)
4141

4242
# Get system configuration, Use it to determine osname, os release, cpu. These
4343
# will be used when committing to CDash.
@@ -163,8 +163,6 @@ SET(EXTRA_DEPS "")
163163
# Set CTest Properties
164164
################################
165165

166-
167-
168166
ENABLE_TESTING()
169167
INCLUDE(CTest)
170168

@@ -262,6 +260,7 @@ ENDIF()
262260
#####
263261
# System inspection checks
264262
#####
263+
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/include)
265264
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
266265
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/oc2)
267266
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/libsrc)
@@ -2205,6 +2204,13 @@ configure_file(
22052204
${netCDF_SOURCE_DIR}/include/netcdf_meta.h.in
22062205
${netCDF_BINARY_DIR}/include/netcdf_meta.h @ONLY)
22072206

2207+
#####
2208+
# Create 'netcdf_dispatch.h' include file.
2209+
#####
2210+
configure_file(
2211+
${netCDF_SOURCE_DIR}/include/netcdf_dispatch.h.in
2212+
${netCDF_BINARY_DIR}/include/netcdf_dispatch.h @ONLY NEWLINE_STYLE LF)
2213+
22082214
#####
22092215
# Build test_common.sh
22102216
#####

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This file contains a high-level description of this package's evolution. Release
77

88
## 4.8.0 - TBD
99

10+
* [Enhancement] Bump the NC_DISPATCH_VERSION from 2 to 3, and as a side effect, unify the definition of NC_DISPATCH_VERSION so it only needs to be defined in CMakeLists.txt and configure.ac. See [Github #1945](https://github.com/Unidata/netcdf-c/pull/1945) for more information.
1011
* [Enhancement] Provide better cross platform path name management. This converts paths for various platforms (e.g. Windows, MSYS, etc.) so that they are in the proper format for the executing platform. See [Github #1958](https://github.com/Unidata/netcdf-c/pull/1958) for more information.
1112
* [Bug Fixes] The nccopy program was treating -d0 as turning deflation on rather than interpreting it as "turn off deflation". See [Github #1944](https://github.com/Unidata/netcdf-c/pull/1944) for more information.
1213
* [Enhancement] Add support for storing NCZarr data in zip files. See [Github #1942](https://github.com/Unidata/netcdf-c/pull/1942) for more information.

config.h.cmake.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,9 @@ with zip */
460460
/* Add extra properties to _NCProperties attribute */
461461
#cmakedefine NCPROPERTIES_EXTRA ${NCPROPERTIES_EXTRA}
462462

463+
/* Idspatch table version */
464+
#cmakedefine NC_DISPATCH_VERSION ${NC_DISPATCH_VERSION}
465+
463466
/* no IEEE float on this platform */
464467
#cmakedefine NO_IEEE_FLOAT 1
465468

configure.ac

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,9 @@ AX_SET_META([NC_HAS_MULTIFILTERS],[$has_multifilters],[yes])
16891689
# applications like PIO can determine whether they have an appropriate
16901690
# dispatch table to submit. If this is changed, make sure the value in
16911691
# CMakeLists.txt also changes to match.
1692-
AC_SUBST([NC_DISPATCH_VERSION], [2])
1692+
1693+
AC_SUBST([NC_DISPATCH_VERSION], [3])
1694+
AC_DEFINE_UNQUOTED([NC_DISPATCH_VERSION], [${NC_DISPATCH_VERSION}], [Dispatch table version.])
16931695

16941696
#####
16951697
# End netcdf_meta.h definitions.
@@ -1723,6 +1725,7 @@ AC_CONFIG_FILES([Makefile
17231725
libnetcdf.settings
17241726
postinstall.sh
17251727
include/netcdf_meta.h
1728+
include/netcdf_dispatch.h
17261729
include/Makefile
17271730
h5_test/Makefile
17281731
hdf4_test/Makefile

include/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ INSTALL(FILES ${netCDF_SOURCE_DIR}/include/netcdf_filter.h
2828
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
2929
COMPONENT headers)
3030

31-
INSTALL(FILES ${netCDF_SOURCE_DIR}/include/netcdf_dispatch.h
31+
INSTALL(FILES ${netCDF_BINARY_DIR}/include/netcdf_dispatch.h
3232
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
3333
COMPONENT headers)
3434

include/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ if ENABLE_BYTERANGE
2929
noinst_HEADERS += nchttp.h
3030
endif
3131

32-
EXTRA_DIST = CMakeLists.txt XGetopt.h netcdf_meta.h.in
32+
EXTRA_DIST = CMakeLists.txt XGetopt.h netcdf_meta.h.in netcdf_dispatch.in

include/ncdispatch.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@
8080
#define ATOMICTYPEMAX3 NC_DOUBLE
8181
#define ATOMICTYPEMAX5 NC_UINT64
8282

83-
/* Define an alias for int to indicate an error return */
84-
typedef int NCerror;
85-
8683
#if !defined HDF5_PARALLEL && !defined USE_PNETCDF
8784
typedef int MPI_Comm;
8885
typedef int MPI_Info;

include/nchttp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ typedef struct NC_HTTP_STATE {
2323
char errbuf[1024]; /* assert(CURL_ERROR_SIZE <= 1024) */
2424
} NC_HTTP_STATE;
2525

26-
extern int nc_http_open(const char* objecturl, NC_HTTP_STATE** state, size64_t* lenp);
26+
extern int nc_http_open(const char* objecturl, NC_HTTP_STATE** state, long long* lenp);
2727
extern int nc_http_size(NC_HTTP_STATE* state, const char* url, size64_t* sizep);
2828
extern int nc_http_read(NC_HTTP_STATE* state, const char* url, size64_t start, size64_t count, NCbytes* buf);
2929
extern int nc_http_close(NC_HTTP_STATE* state);
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525

2626
/* This is the version of the dispatch table. It should be changed
2727
* when new functions are added to the dispatch table. */
28-
#define NC_DISPATCH_VERSION 3
28+
#ifndef NC_DISPATCH_VERSION
29+
#define NC_DISPATCH_VERSION @NC_DISPATCH_VERSION@
30+
#endif /*NC_DISPATCH_VERSION*/
2931

3032
/* This is the dispatch table, with a pointer to each netCDF
3133
* function. */

libdap2/dapincludes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "oc.h"
3333

3434
#include "ncdap.h"
35+
#include "nccommon.h"
3536
#include "dapdebug.h"
3637
#include "daputil.h"
3738

@@ -47,7 +48,6 @@ struct NCsegment;
4748

4849
/**************************************************/
4950

50-
#include "nccommon.h"
5151
#include "getvara.h"
5252
#include "constraints.h"
5353

0 commit comments

Comments
 (0)