move single use macro to using program

This commit is contained in:
Dennis Heimbigner 2012-03-28 16:19:16 +00:00
parent dc016d27ae
commit 28bd09236b
3 changed files with 12 additions and 14 deletions

2
cf
View File

@ -126,7 +126,7 @@ FLAGS="$FLAGS --disable-pnetcdf"
#FLAGS="$FLAGS --enable-ffio"
#FLAGS="$FLAGS --enable-benchmarks"
#FLAGS="$FLAGS --enable-extra-tests"
#FLAGS="$FLAGS --enable-large-file-tests"
FLAGS="$FLAGS --enable-large-file-tests"
FLAGS="$FLAGS --enable-logging"
FLAGS="$FLAGS --disable-shared"

View File

@ -78,17 +78,4 @@ return 2; \
return 0; \
} while (0)
#ifndef NONETCDF
extern const char* nc_strerror(int ncerr);
static int
complain(int stat)
{
if(stat) {
fprintf(stderr,"%s\n",nc_strerror(stat));
fflush(stderr);
}
return stat;
}
#endif
#endif /* _ERR_MACROS_H */

View File

@ -27,6 +27,17 @@ redistribution conditions.
#define TIME_LEN 1560
#define NUM_TS 1
extern const char* nc_strerror(int ncerr);
static int
complain(int stat)
{
if(stat) {
fprintf(stderr,"%s\n",nc_strerror(stat));
fflush(stderr);
}
return stat;
}
static int
read_file(char *filename)
{