diff options
author | Frank Baker <fbaker@hdfgroup.org> | 2001-07-24 22:36:42 (GMT) |
---|---|---|
committer | Frank Baker <fbaker@hdfgroup.org> | 2001-07-24 22:36:42 (GMT) |
commit | be64a4c2ad9ada8b4077bf87ec16a957457d5d60 (patch) | |
tree | d9751abacb7068f64dda2fd9a55a7a780c6232e0 | |
parent | 02f66931ea83597b4bdc47ba152ffc0448638b4e (diff) | |
download | hdf5-be64a4c2ad9ada8b4077bf87ec16a957457d5d60.zip hdf5-be64a4c2ad9ada8b4077bf87ec16a957457d5d60.tar.gz hdf5-be64a4c2ad9ada8b4077bf87ec16a957457d5d60.tar.bz2 |
[svn-r4255]
Purpose:
Update
Description:
Updated H5check_version per Albert's recent expansion of the
source code comments.
Platforms tested:
IE 5
-rw-r--r-- | doc/html/RM_H5.html | 64 |
1 files changed, 54 insertions, 10 deletions
diff --git a/doc/html/RM_H5.html b/doc/html/RM_H5.html index 8149299..4fcb97b 100644 --- a/doc/html/RM_H5.html +++ b/doc/html/RM_H5.html @@ -290,21 +290,65 @@ facilitate moving easily between them.</i> <em>unsigned</em> <code>relnum</code> ) <dt><strong>Purpose:</strong> - <dd> + <dd>Verifies that library versions are consistent. <dt><strong>Description:</strong> - <dd><code>H5check_version</code> verifies that the arguments match the - version numbers compiled into the library. This function is intended - to be called by the user to verify that the version of the header files - compiled into the application matches the version of the HDF5 library - being used. + <dd><code>H5check_version</code> verifies that the arguments provided + with the function call match the version numbers compiled into + the library. + <p> + <code>H5check_version</code> serves two slightly differing purposes. + <p> + First, the function is intended to be called by the user to verify + that the version of the header files compiled into an application + matches the version of the HDF5 library being used. <p> Due to the risks of data corruption or segmentation faults, <code>H5check_version</code> causes the application to abort if the version numbers do not match. - <p> - If the version numbers of the library do not match - the version numbers in the header files being checked, the library calls the + The abort is achieved by means of a call to the standard C function <code>abort()</code>. + <p> + Note that <code>H5check_version</code> verifies only the + major and minor version numbers and the release number; + it does not verify the sub-release number as that should be + an empty string for any official release. + <p> +<!-- + Secondarily, <code>H5check_version</code> verifies that the + library version identifiers <code>H5_VERS_MAJOR</code>, + <code>H5_VERS_MINOR</code>, <code>H5_VERS_RELEASE</code>, + <code>H5_VERS_SUBRELEASE</code>, and <code>H5_VERS_INFO</code> + are consistent. + This is designed to catch source code inconsistencies, + but does not generate the fatal error + that is generated by a failure in the first stage. + <p> +<strong><em>Alternate to preceding paragraph / More to the point?</em></strong> +<br> +--> + If the function passes the above test and does not generate + an <code>abort()</code> call, the function's second purpose + comes into play. + <code>H5check_version</code> then procedes to verify + that the additional library version identifiers + <code>H5_VERS_SUBRELEASE</code>, and <code>H5_VERS_INFO</code> + are consistent. + This is designed to catch source code inconsistencies, + but does not generate the fatal error + that is generated under the first function. + <p> + The version and release numbers passed as + <code>H5check_version</code> parameters have the + following relationsips to each other: + <dir> + An official HDF5 release is labelled as + <br> + HDF5 Release <<code>majnum</code>><strong>.</strong><<code>minnum</code>><strong>.</strong><<code>relnum</code>> + </dir> + For example, in the version of the library known as HDF5 Release 1.4.2, + the 1 is the major version number, <code>majnum</code>; + the 1 is the minor version number, <code>minnum</code>; and + the 1 is the release number, <code>relnum</code>. <dt><strong>Parameters:</strong> <dl> <dt><em>unsigned </em><code>majnum</code> @@ -369,7 +413,7 @@ H5 <a href="mailto:hdfhelp@ncsa.uiuc.edu">HDF Help Desk</a> <br> -Last modified: 20 March 2001 +Last modified: 24 July 2001 <br> Describes HDF5 Release 1.4.2, July 2001 |