summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-07-20 16:05:43 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-07-20 16:05:43 (GMT)
commit1dbacc8377754e33e8088ad6c7895a5f68bf7dfb (patch)
treefcf26adf4ac525bd2fe2d519c084f9accb78bfe0 /src/H5.c
parent29bf0662db641fde339ff9237bd1277509a047f1 (diff)
downloadhdf5-1dbacc8377754e33e8088ad6c7895a5f68bf7dfb.zip
hdf5-1dbacc8377754e33e8088ad6c7895a5f68bf7dfb.tar.gz
hdf5-1dbacc8377754e33e8088ad6c7895a5f68bf7dfb.tar.bz2
[svn-r517] Changes since 19980720
---------------------- ./bin/release The archive names have only three parts to a version number. Instead of `hdf5-1.2.3d.tar.gz' they will be named like `hdf5-1.2.3.tar.gz'. ./src/H5public.h ./src/H5.c Dropped the patch level from the version number. The version number is now a major number, a minor number, and a release number. ./doc/html/Version.html Updated to get rid of patch numbers. ./tools/h5repart.c Added a `-V' flag like for `h5ls' that prints the version number.
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/H5.c b/src/H5.c
index c521ea0..9b52dfa 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -304,11 +304,12 @@ H5dont_atexit(void)
*
* Purpose: Returns the library version numbers through arguments. MAJNUM
* will be the major revision number of the library, MINNUM the
- * minor revision number, RELNUM the release revision number,
- * and PATNUM the patch revision number.
+ * minor revision number, and RELNUM the release revision number.
*
* Note: When printing an HDF5 version number it should be printed as
- * `printf ("HDF5-%d.%d.%d%c", maj, min, rel, 'a'+patch)'.
+ *
+ * printf("%u.%u.%u", maj, min, rel) or
+ * printf("version %u.%u release %u", maj, min, rel)
*
* Return: Success: SUCCEED
*
@@ -324,8 +325,7 @@ H5dont_atexit(void)
*-------------------------------------------------------------------------
*/
herr_t
-H5version(unsigned *majnum, unsigned *minnum, unsigned *relnum,
- unsigned *patnum)
+H5version(unsigned *majnum, unsigned *minnum, unsigned *relnum)
{
herr_t ret_value = SUCCEED;
@@ -335,7 +335,6 @@ H5version(unsigned *majnum, unsigned *minnum, unsigned *relnum,
if (majnum) *majnum = H5_VERS_MAJOR;
if (minnum) *minnum = H5_VERS_MINOR;
if (relnum) *relnum = H5_VERS_RELEASE;
- if (patnum) *patnum = H5_VERS_PATCH;
FUNC_LEAVE(ret_value);
}
@@ -362,22 +361,20 @@ H5version(unsigned *majnum, unsigned *minnum, unsigned *relnum,
*-------------------------------------------------------------------------
*/
herr_t
-H5vers_check (unsigned majnum, unsigned minnum, unsigned relnum,
- unsigned patnum)
+H5vers_check (unsigned majnum, unsigned minnum, unsigned relnum)
{
/* Don't initialize the library quite yet */
if (H5_VERS_MAJOR!=majnum || H5_VERS_MINOR!=minnum ||
- H5_VERS_RELEASE!=relnum || H5_VERS_PATCH!=patnum) {
+ H5_VERS_RELEASE!=relnum) {
fputs ("Warning! The HDF5 header files included by this application "
"do not match the\nversion used by the HDF5 library to which "
"this application is linked. Data\ncorruption or segmentation "
"faults would be likely if the application were\nallowed to "
"continue.\n", stderr);
- fprintf (stderr, "Headers are %u.%u.%u%c, library is %u.%u.%u%c\n",
- majnum, minnum, relnum, 'a'+patnum,
- H5_VERS_MAJOR, H5_VERS_MINOR, H5_VERS_RELEASE,
- 'a'+H5_VERS_PATCH);
+ fprintf (stderr, "Headers are %u.%u.%u, library is %u.%u.%u\n",
+ majnum, minnum, relnum,
+ H5_VERS_MAJOR, H5_VERS_MINOR, H5_VERS_RELEASE);
fputs ("Bye...\n", stderr);
abort ();
}