diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-01-23 20:46:34 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-01-23 20:46:34 (GMT) |
commit | 56e3f667d6e3e265ac044f3faf1b17137556e0f7 (patch) | |
tree | 70f04688f0596ca5be22dd4e9260f601ee77bbd8 /tools/h5import | |
parent | b09695738a95d8f1fb823894d1880f28dc16669c (diff) | |
download | hdf5-56e3f667d6e3e265ac044f3faf1b17137556e0f7.zip hdf5-56e3f667d6e3e265ac044f3faf1b17137556e0f7.tar.gz hdf5-56e3f667d6e3e265ac044f3faf1b17137556e0f7.tar.bz2 |
[svn-r11886] Purpose:
Code cleanup
Description:
Check in some of the code cleanups from working on the external link
support. (This doesn't include any of the external link features)
Platforms tested:
FreeBSD 4.11 (sleipnir)
Mac OSX.4 (amazon)
Linux 2.4
Diffstat (limited to 'tools/h5import')
-rwxr-xr-x | tools/h5import/h5import.c | 35 | ||||
-rwxr-xr-x | tools/h5import/h5import.h | 6 | ||||
-rwxr-xr-x | tools/h5import/h5importtest.c | 5 |
3 files changed, 26 insertions, 20 deletions
diff --git a/tools/h5import/h5import.c b/tools/h5import/h5import.c index 79c249b..7d81779 100755 --- a/tools/h5import/h5import.c +++ b/tools/h5import/h5import.c @@ -11,15 +11,14 @@ * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include <hdf5.h> -#include <H5private.h> -#include <stdio.h> -#ifndef MIPSEL -#include <math.h> -#endif /* MIPSEL */ -#include <string.h> -#include <ctype.h> -#include "h5import.h" + +#include "hdf5.h" +#include "H5private.h" +#include <stdio.h> +#include <math.h> +#include <string.h> +#include <ctype.h> +#include "h5import.h" int main(int argc, char *argv[]) { @@ -30,15 +29,15 @@ int main(int argc, char *argv[]) int state = 0; struct Input *in=NULL; - const char *err1 = "Invalid number of arguments: %d.\n"; - const char *err2 = "Error in state table.\n"; - const char *err3 = "No output file given.\n"; - const char *err4 = "Program aborted.\n"; - const char *err5 = "Invalid path %s.\n"; - const char *err6 = "Invalid dimensions - %s.\n"; - const char *err7 = "Invalid type of data - %s.\n"; - const char *err8 = "Invalid size of data - %s.\n"; - const char *err9 = "Cannot specify more than 30 input files in one call to h5import.\n"; + const char *err1 = "Invalid number of arguments: %d.\n"; + const char *err2 = "Error in state table.\n"; + const char *err3 = "No output file given.\n"; + const char *err4 = "Program aborted.\n"; + const char *err5 = "Invalid path %s.\n"; + const char *err6 = "Invalid dimensions - %s.\n"; + const char *err7 = "Invalid type of data - %s.\n"; + const char *err8 = "Invalid size of data - %s.\n"; + const char *err9 = "Cannot specify more than 30 input files in one call to h5import.\n"; (void) setvbuf(stderr, (char *) NULL, _IOLBF, 0); (void) setvbuf(stdout, (char *) NULL, _IOLBF, 0); diff --git a/tools/h5import/h5import.h b/tools/h5import/h5import.h index cf318fc..85fa71e 100755 --- a/tools/h5import/h5import.h +++ b/tools/h5import/h5import.h @@ -18,6 +18,9 @@ * */ +#ifndef H5IMPORT_H__ +#define H5IMPORT_H__ + /* * state table tokens */ @@ -220,3 +223,6 @@ hid_t createInputDataType(struct Input *in); static int readUIntegerData(FILE **strm, struct Input *in); static int allocateUIntegerStorage(struct Input *in); static int validateConfigurationParameters(struct Input * in); + +#endif /* H5IMPORT_H__ */ + diff --git a/tools/h5import/h5importtest.c b/tools/h5import/h5importtest.c index e6c29e5..32d3fe5 100755 --- a/tools/h5import/h5importtest.c +++ b/tools/h5import/h5importtest.c @@ -11,8 +11,10 @@ * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + #include <stdio.h> -#include <H5private.h> +#include "H5private.h" + /* * Name: * h5importtest @@ -286,4 +288,3 @@ main(void) return (0); } - |