From 79215c77aee459b4d332b7968381e53ffadb0975 Mon Sep 17 00:00:00 2001 From: Dennis Heimbigner Date: Sat, 11 May 2013 19:34:54 +0000 Subject: [PATCH] Allow dapodom.[ch] to be used in tests --- cf | 2 +- libdap2/Make0 | 2 +- libdap2/dapodom.h | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cf b/cf index 35684accb..410d8ac51 100644 --- a/cf +++ b/cf @@ -6,7 +6,7 @@ if test $# != 0 ; then cmds=$@ fi -HDF5=1 +#HDF5=1 DAP=1 #PNETCDF=1 #HDF4=1 diff --git a/libdap2/Make0 b/libdap2/Make0 index cf10f5af5..f5e668996 100755 --- a/libdap2/Make0 +++ b/libdap2/Make0 @@ -258,7 +258,7 @@ fix:: done ################################################## -T=test_nstride2 +T=junk v:: cc -g -c ${T}.c ${INCL} diff --git a/libdap2/dapodom.h b/libdap2/dapodom.h index 04e160b7d..5c5935762 100644 --- a/libdap2/dapodom.h +++ b/libdap2/dapodom.h @@ -19,7 +19,9 @@ typedef struct Dapodometer { size_t declsize[NC_MAX_VAR_DIMS]; } Dapodometer; +#ifndef TESTING extern Dapodometer* dapodom_fromsegment(DCEsegment* segment, size_t start, size_t stop); +#endif extern Dapodometer* dapodom_new(size_t rank, const size_t* start, const size_t* count,