diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-02-18 12:16:27 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-02-18 12:16:27 (GMT) |
commit | 5655953a2adcdcfe2f0d5599a52d36fbea405817 (patch) | |
tree | 352bf3ad7afc1b1277ad9218c33c8ad3aa06f852 /src/H5Zpublic.h | |
parent | 7ff7845b3a18a3e32fbf84f089f4a01ba9329274 (diff) | |
download | hdf5-5655953a2adcdcfe2f0d5599a52d36fbea405817.zip hdf5-5655953a2adcdcfe2f0d5599a52d36fbea405817.tar.gz hdf5-5655953a2adcdcfe2f0d5599a52d36fbea405817.tar.bz2 |
[svn-r6415] Purpose:
Code cleanup
Description:
Changed hard-coded magic number (32) for the maximum number of filters
in a filter pipeline to use a symbolic constant (H5Z_MAX_NFILTERS)
instead. This limit could (and probably should) be removed to allow an
unlimited number of filters in a pipeline.
Platforms tested:
FreeBSD 4.7 (sleipnir)
Diffstat (limited to 'src/H5Zpublic.h')
-rw-r--r-- | src/H5Zpublic.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/H5Zpublic.h b/src/H5Zpublic.h index 3acf54d..8893a88 100644 --- a/src/H5Zpublic.h +++ b/src/H5Zpublic.h @@ -1,10 +1,21 @@ -/* - * Copyright (C) 1998 NCSA - * All rights reserved. - * - * Programmer: Robb Matzke <matzke@llnl.gov> +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Copyright by the Board of Trustees of the University of Illinois. * + * All rights reserved. * + * * + * This file is part of HDF5. The full HDF5 copyright notice, including * + * terms governing use, modification, and redistribution, is contained in * + * the files COPYING and Copyright.html. COPYING can be found at the root * + * of the source code distribution tree; Copyright.html can be found at the * + * root level of an installed copy of the electronic HDF5 document set and * + * is linked from the top-level documents page. It can also be found at * + * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have * + * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/* Programmer: Robb Matzke <matzke@llnl.gov> * Thursday, April 16, 1998 */ + #ifndef _H5Zpublic_H #define _H5Zpublic_H @@ -23,6 +34,7 @@ typedef int H5Z_filter_t; #define H5Z_FILTER_FLETCHER32 3 /*fletcher32 checksum of EDC */ #define H5Z_FILTER_RESERVED 256 /*filter ids below this value are reserved */ #define H5Z_FILTER_MAX 65535 /*maximum filter id */ +#define H5Z_MAX_NFILTERS 32 /* Maximum number of filters allowed in a pipeline (should probably be allowed to be an unlimited amount) */ /* Flags for filter definition */ #define H5Z_FLAG_DEFMASK 0x00ff /*definition flag mask */ |