diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-04-20 00:19:46 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-04-20 00:19:46 (GMT) |
commit | 365ca1225d447e1680d9c0dbe00c375655c3948d (patch) | |
tree | 509845d3928879ed774f8c48d44acb669565f1c2 /tools/lib/h5trav_table.c | |
parent | beb0079ae11d4932a1ce91545e49801ac206c75a (diff) | |
download | hdf5-365ca1225d447e1680d9c0dbe00c375655c3948d.zip hdf5-365ca1225d447e1680d9c0dbe00c375655c3948d.tar.gz hdf5-365ca1225d447e1680d9c0dbe00c375655c3948d.tar.bz2 |
[svn-r8397] Purpose:
h5repack in 1.6
Description:
2 functions we re added to /src:
H5Premove filter and H5Iget_file_id
Solution:
Platforms tested:
linux
solaris
AIX
Misc. update:
Diffstat (limited to 'tools/lib/h5trav_table.c')
-rw-r--r-- | tools/lib/h5trav_table.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tools/lib/h5trav_table.c b/tools/lib/h5trav_table.c index 8e794aa..940fc0e 100644 --- a/tools/lib/h5trav_table.c +++ b/tools/lib/h5trav_table.c @@ -30,12 +30,12 @@ *------------------------------------------------------------------------- */ -int trav_table_search(haddr_t objno, trav_table_t *table ) +int trav_table_search(unsigned long *objno, trav_table_t *table ) { int i; for (i = 0; i < table->nobjs; i++) - if (table->objs[i].objno == objno) + if (table->objs[i].objno[0] == *objno && table->objs[i].objno[1] == *(objno + 1)) return i; return -1; @@ -56,7 +56,7 @@ int trav_table_search(haddr_t objno, trav_table_t *table ) *------------------------------------------------------------------------- */ -void trav_table_add(haddr_t objno, +void trav_table_add(unsigned long *objno, char *name, H5G_obj_t type, trav_table_t *table) @@ -69,7 +69,7 @@ void trav_table_add(haddr_t objno, (trav_obj_t*)HDrealloc(table->objs, table->size * sizeof(trav_obj_t)); for (i = table->nobjs; i < table->size; i++) { - table->objs[i].objno = 0; + table->objs[i].objno[0] = table->objs[i].objno[1] = 0; table->objs[i].flags[0] = table->objs[i].flags[1] = 0; table->objs[i].displayed = 0; table->objs[i].type = H5G_UNKNOWN; @@ -81,7 +81,8 @@ void trav_table_add(haddr_t objno, } i = table->nobjs++; - table->objs[i].objno = objno; + table->objs[i].objno[0] = objno[0]; + table->objs[i].objno[1] = objno[1]; table->objs[i].flags[0] = table->objs[i].flags[1] = 0; HDfree(table->objs[i].name); table->objs[i].name = (char *)HDstrdup(name); @@ -118,7 +119,7 @@ void trav_table_addflags(unsigned *flags, (trav_obj_t*)HDrealloc(table->objs, table->size * sizeof(trav_obj_t)); for (i = table->nobjs; i < table->size; i++) { - table->objs[i].objno = 0; + table->objs[i].objno[0] = table->objs[i].objno[1] = 0; table->objs[i].flags[0] = table->objs[i].flags[1] = 0; table->objs[i].displayed = 0; table->objs[i].type = H5G_UNKNOWN; @@ -130,7 +131,8 @@ void trav_table_addflags(unsigned *flags, } i = table->nobjs++; - table->objs[i].objno = 0; + table->objs[i].objno[0] = 0; + table->objs[i].objno[1] = 0; table->objs[i].flags[0] = flags[0]; table->objs[i].flags[1] = flags[1]; HDfree(table->objs[i].name); @@ -166,7 +168,7 @@ void trav_table_init( trav_table_t **tbl ) (trav_obj_t*)HDmalloc(table->size * sizeof(trav_obj_t)); for (i = 0; i < table->size; i++) { - table->objs[i].objno = 0; + table->objs[i].objno[0] = table->objs[i].objno[1] = 0; table->objs[i].flags[0] = table->objs[i].flags[1] = 0; table->objs[i].displayed = 0; table->objs[i].type = H5G_UNKNOWN; |