mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-03-25 17:40:27 +08:00
move single use macro to using program
This commit is contained in:
parent
dc016d27ae
commit
28bd09236b
2
cf
2
cf
@ -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"
|
||||
|
@ -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 */
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user