summaryrefslogtreecommitdiffstats
path: root/tools/h4toh5main.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2000-10-18 03:48:10 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2000-10-18 03:48:10 (GMT)
commit3cea3093c854b225088c4cabe140b333d08e5462 (patch)
tree2f076db0619461182b322a719a529ab302b47c07 /tools/h4toh5main.c
parentf71aa7cb6c60a94190fd8039c31a24fa994643e3 (diff)
downloadhdf5-3cea3093c854b225088c4cabe140b333d08e5462.zip
hdf5-3cea3093c854b225088c4cabe140b333d08e5462.tar.gz
hdf5-3cea3093c854b225088c4cabe140b333d08e5462.tar.bz2
[svn-r2691]
Purpose: 1. fix multiple defination warnings at sgi platform 2. adding chunking information from hdf4 to hdf5 property list. Description: 1. Orginally global varibles were defined at one header file and this header file were included by other .c file and .h file so multiple warnings are generated. 2. Chunking information was not included in the previous version. Solution: 1. use "extern" to define global variables at h4toh5util.h file and define global variables at h4toh5main.c 2. retrieve the chunking info from sdgetchunkinfo and GRgetchunkinfo and store these information into hdf5 property list. Platforms tested: eirene,arabica,paz,gondolin
Diffstat (limited to 'tools/h4toh5main.c')
-rw-r--r--tools/h4toh5main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/h4toh5main.c b/tools/h4toh5main.c
index 0947bb8..de51554 100644
--- a/tools/h4toh5main.c
+++ b/tools/h4toh5main.c
@@ -2,6 +2,21 @@
#include "h4toh5main.h"
+int32 estnum_vg;
+int32 estnum_vd;
+int32 num_sds;
+int32 num_images;
+int num_objects;
+int32 num_glsdsattrs;
+int32 num_glgrattrs;
+struct table* sds_hashtab;
+struct table* gr_hashtab;
+struct table* vg_hashtab;
+struct table* vd_hashtab;
+struct table* pal_hashtab;
+struct name_table* name_hashtab;
+struct name_table* dim_hashtab;
+
/*-------------------------------------------------------------------------
* Function: main
*
@@ -13,6 +28,8 @@
*-------------------------------------------------------------------------
*/
+
+
int main(int argc, char ** argv) {
char *h5_filename=NULL;