summaryrefslogtreecommitdiffstats
path: root/tools/h4toh5util.h
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2000-10-12 22:47:38 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2000-10-12 22:47:38 (GMT)
commit8abdfea352aaebde90c67e4c0657ef866caaab79 (patch)
treed47612916b6ba2951e2046c8ab324a6a63686080 /tools/h4toh5util.h
parentc23193d9de5ba54f166fb468c535c08ed8dc835f (diff)
downloadhdf5-8abdfea352aaebde90c67e4c0657ef866caaab79.zip
hdf5-8abdfea352aaebde90c67e4c0657ef866caaab79.tar.gz
hdf5-8abdfea352aaebde90c67e4c0657ef866caaab79.tar.bz2
[svn-r2674]
Purpose: 1. fix size of dimensional name list so that the size of dimensional name in dumper output will not change because of different versions of hdf library(h4toh5util.h and h4toh5sds.c). 2. fix bzero routine for windows platform(h4toh5util.h,h4toh5util.c,h4toh5anno.c,h4toh5main.c, h4toh5sds.c) Description: 1. change the MAX_DIM_NAME into 276(MAX_NC_NAME +dimension group name) and hopefully we will not expand the size of MAX_NC_NAME(currently 256) for a long time. 2. create a new routine(h4toh5_ZeroMemory) to zero out memory. Use ZeroMemory in windows and bzero at UNIX. Solution: see Description. Platforms tested: LINUX(eirene),WINDOWS 2000, sun 5.6(baldric and arabica),HP-UX11(opus),DEC(gondolin),IRIX 6.5(paz).
Diffstat (limited to 'tools/h4toh5util.h')
-rw-r--r--tools/h4toh5util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/h4toh5util.h b/tools/h4toh5util.h
index cd6bcf4..0cba454 100644
--- a/tools/h4toh5util.h
+++ b/tools/h4toh5util.h
@@ -95,6 +95,8 @@ converter.*/
#define VG_DEFHASHSIZE 64
#define VD_DEFHASHSIZE 64
#define MAXREF_LENGTH 5
+/*considering the string size of HDF4_DIMGROUP. we add this into 276.*/
+#define MAX_DIM_NAME 276
int32 estnum_vg;
int32 estnum_vd;
@@ -135,6 +137,8 @@ struct table* pal_hashtab;
struct name_table* name_hashtab;
struct name_table* dim_hashtab;
+/* routine for zeroing out the memory. */
+void h4toh5_ZeroMemory(void*s,size_t n);
/* look-up table, object reference is the key.*/
int lookup(int,int,struct table*);