From a91e5a22c42e0c6f7c773d184eb259f5dc54988a Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 8 Aug 2003 14:31:37 -0500 Subject: [svn-r7323] Purpose: Refactored code Description: Added 'unsigned flags[2]' field and changed 'objno' field from 'unsigned long[2]' to 'haddr_t' (to reflect changes in H5G_stat_t) Platforms tested: h5committested --- tools/h5diff/h5trav.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/h5diff/h5trav.h b/tools/h5diff/h5trav.h index d2e057b..9eac307 100644 --- a/tools/h5diff/h5trav.h +++ b/tools/h5diff/h5trav.h @@ -34,10 +34,11 @@ typedef struct info_t { /*struct to store basic info about an object */ typedef struct obj_t { - unsigned long objno[2]; + haddr_t objno; + unsigned flags[2]; char *objname; int displayed; - int type; + int type; } obj_t; /*struct that stores all objects, excluding shared objects */ @@ -54,8 +55,9 @@ int H5get_object_info( hid_t file_id, info_t *info ); /* table methods */ void table_init(table_t **table); void table_free(table_t *table); -int table_search(unsigned long *objno, table_t *table ); -void table_add(unsigned long *objno, char *objname, int type, table_t *table); +int table_search_obj(haddr_t objno, table_t *table ); +void table_add_obj(haddr_t objno, char *objname, int type, table_t *table); +void table_add_flags(unsigned *flags, char *objname, int type, table_t *table); void info_free(info_t *info, int nobjs); -- cgit v0.12