Fenceposted includes to nc4internal.h in support of https://github.com/Unidata/netcdf-c/issues/275

This commit is contained in:
Ward Fisher 2016-06-08 11:26:37 -06:00
parent 3983b37ac5
commit 2e71768c47
4 changed files with 11 additions and 3 deletions

View File

@ -16,6 +16,8 @@
#include <stdarg.h>
#include <string.h>
#include <hdf5.h>
#include "ncdimscale.h"
#include "nc_logging.h"

View File

@ -10,12 +10,12 @@
#endif
#include "ncdispatch.h"
#include "nc4internal.h"
extern int NC3_initialize(void);
extern int NC3_finalize(void);
#ifdef USE_NETCDF4
#include "nc4internal.h"
extern int NC4_initialize(void);
extern int NC4_finalize(void);
#endif

View File

@ -44,7 +44,10 @@ int optind;
#include "indent.h"
#include "isnan.h"
#include "cdl.h"
#ifdef USE_NETCDF4
#include "nc4internal.h" /* to get name of the special properties file */
#endif
#if !defined(HAVE_SSIZE_T) && !defined(H5_SIZEOF_SSIZE_T)
typedef int ssize_t;
@ -72,7 +75,7 @@ static int iskeyword(const char* kw)
const char** p;
for(p=keywords;*p;p++) {
if(strcmp(kw,*p)==0) return 1;
}
}
return 0;
}
@ -790,7 +793,7 @@ pr_att(
/* printf ("\t\t%s:%s = ", varname, att.name); */
print_name(varname);
if(iskeyword(varname)) /* see discussion about escapes in ncgen man page*/
printf(" ");
printf(" ");
printf(":");
print_name(att.name);
printf(" = ");

View File

@ -47,7 +47,10 @@
#include "util.h"
#include "debug.h"
#include "nc.h"
#ifdef USE_NETCDF4
#include "nc4internal.h"
#endif
extern int specialconstants;