Commit 309c59cb authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add extern declarations for global variables.

parent ca42a0c0
......@@ -94,7 +94,6 @@ static int cdfOpenFile(const char *filename, const char *mode, int *filetype)
int writemode = NC_CLOBBER;
int readmode = NC_NOWRITE;
int status;
extern int CDI_Version_Info;
if ( filename == NULL )
ncid = CDI_EINVAL;
......
......@@ -295,6 +295,7 @@ extern int cdiDefaultInstID;
extern int cdiDefaultModelID;
extern int cdiDefaultTableID;
extern int cdiDefaultLeveltype;
extern int cdiDefaultCalendar;
//extern int cdiNcMissingValue;
extern int cdiNcChunksizehint;
extern int cdiChunkType;
......@@ -302,6 +303,13 @@ extern int cdiSplitLtype105;
extern int cdiDataUnreduced;
extern int cdiSortName;
extern int cdiHaveMissval;
extern int cdiIgnoreAttCoordinates;
extern int cdiIgnoreValidRange;
extern int cdiSkipRecords;
extern int cdiConvention;
extern int cdiInventoryMode;
extern int CDI_Version_Info;
extern size_t CDI_netcdf_hdr_pad;
extern int STREAM_Debug;
......
......@@ -2633,8 +2633,6 @@ void cdf_def_zaxis_hybrid_cf(stream_t *streamptr, int type, int ncvarid, int zax
static
void cdf_def_zaxis_hybrid(stream_t *streamptr, int type, int ncvarid, int zaxisID, int zaxisindex, int xtype, size_t dimlen, int *dimID, char *axisname)
{
extern int cdiConvention;
if ( (!CDI_cmor_mode && cdiConvention == CDI_CONVENTION_ECHAM) || type == ZAXIS_HYBRID_HALF )
cdf_def_zaxis_hybrid_echam(streamptr, type, ncvarid, zaxisID, zaxisindex, xtype, dimlen, dimID, axisname);
else
......@@ -5168,7 +5166,6 @@ int isHybridSigmaPressureCoordinate(int ncid, int ncvarid, ncvar_t *ncvars, cons
if ( strcmp(ncvar->stdname, "atmosphere_hybrid_sigma_pressure_coordinate") == 0 )
{
extern int cdiConvention;
cdiConvention = CDI_CONVENTION_CF;
status = TRUE;
......@@ -5675,7 +5672,6 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
char *varname = NULL;
int lstop = FALSE;
int dimvarid;
extern int cdiIgnoreAttCoordinates;
cdfGetAttText(ncid, ncvarid, attname, attstringlen, attstring);
char *pstring = attstring;
......@@ -5723,7 +5719,6 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
char *varname = NULL;
int lstop = FALSE;
int dimvarid;
extern int cdiIgnoreAttCoordinates;
cdfGetAttText(ncid, ncvarid, attname, attstringlen, attstring);
char *pstring = attstring;
......@@ -8438,8 +8433,6 @@ void cdfEndDef(stream_t *streamptr)
if ( streamptr->ncmode == 2 )
{
extern size_t CDI_netcdf_hdr_pad;
if ( CDI_netcdf_hdr_pad == 0UL )
cdf_enddef(fileID);
else
......
......@@ -20,8 +20,6 @@
# include "cgribex.h"
#endif
extern int cdiInventoryMode;
typedef struct {
int param;
int level1;
......@@ -606,7 +604,6 @@ int cgribexScanTimestep1(stream_t * streamptr)
int comptype;
long unzipsize;
char paramstr[32];
extern int cdiSkipRecords;
int nskip = cdiSkipRecords;
streamptr->curTsID = 0;
......
......@@ -17,8 +17,6 @@
#include "resource_handle.h"
#include "resource_unpack.h"
extern int cdiDefaultCalendar;
static int DefaultTimeType = TAXIS_ABSOLUTE;
static int DefaultTimeUnit = TUNIT_HOUR;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment