summaryrefslogtreecommitdiffstats
path: root/test/cmpd_dset.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-06-23 16:16:51 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-06-23 16:16:51 (GMT)
commitc78a6aedafdf878d0cdd18977d5b10a90763b20d (patch)
treeaec30e31144a64dcdf818248c3598acb82c03c29 /test/cmpd_dset.c
parent0350710f5baa5177674289e06737c99cb201ecc5 (diff)
downloadhdf5-c78a6aedafdf878d0cdd18977d5b10a90763b20d.zip
hdf5-c78a6aedafdf878d0cdd18977d5b10a90763b20d.tar.gz
hdf5-c78a6aedafdf878d0cdd18977d5b10a90763b20d.tar.bz2
[svn-r1371]
Changes since 19990618 ---------------------- ./configure.in ./configure [REGENERATED] Now that compound struct conversions don't make so many calls to convert their members I turned the H5T debugging back on by default (it will still be disabled in a production version). ./src/H5AC.c ./src/H5B.c Made it possible to turn off messages about debugging these two packages using the same method as for all other packages. Just supply an invalid file descriptor number or use the shell to redirect said descriptor to /dev/null like this: $ HDF5_DEBUG=99,ac,b 99>/dev/null a.out ./src/H5T.c Changed the name of the old compound conversion function from `struct' to `struct(no-opt)' to be more consistent with the new version named `struct(opt)'. Fixed a bug in H5T_cmp() that caused any two VL types to compare as being equal. Removed duplicate code for bitfield comparisons in H5T_cmp(). ./src/H5Tconv.c Relaxed some constraints in the new compound conversion function so it applies to more cases. Also eliminated a memcpy in a tight loop. ./test/cmpd_dset.c Added a `--noopt' command line switch which unregisters the optimized compound conversion so we can test the non-optimized version.
Diffstat (limited to 'test/cmpd_dset.c')
-rw-r--r--test/cmpd_dset.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/cmpd_dset.c b/test/cmpd_dset.c
index 08499a6..6777ea9 100644
--- a/test/cmpd_dset.c
+++ b/test/cmpd_dset.c
@@ -80,11 +80,13 @@ typedef struct s5_t {
* Friday, January 23, 1998
*
* Modifications:
- *
+ * Robb Matzke, 1999-06-23
+ * If the command line switch `--noopt' is present then the fast
+ * compound datatype conversion is turned off.
*-------------------------------------------------------------------------
*/
int
-main (void)
+main (int argc, char *argv[])
{
/* First dataset */
static s1_t s1[NX*NY];
@@ -134,6 +136,15 @@ main (void)
h5_reset();
+ /* Turn off optimized compound converter? */
+ if (argc>1) {
+ if (argc>2 || strcmp("--noopt", argv[1])) {
+ fprintf(stderr, "usage: %s [--noopt]\n", argv[0]);
+ exit(1);
+ }
+ H5Tunregister(H5T_PERS_DONTCARE, NULL, -1, -1, H5T_conv_struct_opt);
+ }
+
/* Create the file */
fapl = h5_fileaccess();
h5_fixname(FILENAME[0], fapl, filename, sizeof(filename));