summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-10-26 21:18:54 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-10-26 21:18:54 (GMT)
commit69d3cf72b3498e4f6ee95425881cf227f7f71c93 (patch)
tree686a04bfbdced05835ec3d075a367c95c96cab3f /src/H5AC.c
parent4d5f1b72de9f2439904975da411dea4f8095fe7b (diff)
downloadhdf5-69d3cf72b3498e4f6ee95425881cf227f7f71c93.zip
hdf5-69d3cf72b3498e4f6ee95425881cf227f7f71c93.tar.gz
hdf5-69d3cf72b3498e4f6ee95425881cf227f7f71c93.tar.bz2
[svn-r797] Changed comments from returning "SUCCEED/FAIL" to "non-negative/negative"
and also fixed a few more explicit checks against FAIL.
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c28
1 files changed, 8 insertions, 20 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index ac6e140..b63bbf0 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -52,7 +52,7 @@ static H5AC_t *current_cache_g = NULL; /*for sorting */
*
* Return: Success: Number of slots actually used.
*
- * Failure: FAIL
+ * Failure: Negative
*
* Programmer: Robb Matzke
* matzke@llnl.gov
@@ -94,9 +94,7 @@ H5AC_create(H5F_t *f, intn size_hint)
* This function fails if any object are protected since the
* resulting file might not be consistent.
*
- * Return: Success: SUCCEED
- *
- * Failure: FAIL
+ * Return: Non-negative on success/Negative on failure
*
* Programmer: Robb Matzke
* matzke@llnl.gov
@@ -329,10 +327,8 @@ H5AC_compare(const void *_a, const void *_b)
* However, an attempt will be made to flush all non-protected
* items before this function returns failure.
*
- * Return: Success: SUCCEED
- *
- * Failure: FAIL if there was a request to flush all
- * items and something was protected.
+ * Return: Non-negative on success/Negative on failure if there was a
+ * request to flush all items and something was protected.
*
* Programmer: Robb Matzke
* matzke@llnl.gov
@@ -457,9 +453,7 @@ H5AC_flush(H5F_t *f, const H5AC_class_t *type, const haddr_t *addr,
* If H5AC_DEBUG is defined then this function checks
* that the object being inserted isn't a protected object.
*
- * Return: Success: SUCCEED
- *
- * Failure: FAIL
+ * Return: Non-negative on success/Negative on failure
*
* Programmer: Robb Matzke
* matzke@llnl.gov
@@ -527,9 +521,7 @@ H5AC_set(H5F_t *f, const H5AC_class_t *type, const haddr_t *addr, void *thing)
* that the old and new addresses don't correspond to the
* address of a protected object.
*
- * Return: Success: SUCCEED
- *
- * Failure: FAIL
+ * Return: Non-negative on success/Negative on failure
*
* Programmer: Robb Matzke
* matzke@llnl.gov
@@ -745,9 +737,7 @@ H5AC_protect(H5F_t *f, const H5AC_class_t *type, const haddr_t *addr,
* if the TYPE and ADDR arguments are not what was used when the
* object was protected or if the object was never protected.
*
- * Return: Success: SUCCEED
- *
- * Failure: FAIL
+ * Return: Non-negative on success/Negative on failure
*
* Programmer: Robb Matzke
* matzke@llnl.gov
@@ -831,9 +821,7 @@ H5AC_unprotect(H5F_t *f, const H5AC_class_t *type, const haddr_t *addr,
*
* Purpose: Prints debugging info about the cache.
*
- * Return: Success: SUCCEED
- *
- * Failure: FAIL
+ * Return: Non-negative on success/Negative on failure
*
* Programmer: Robb Matzke
* Thursday, October 30, 1997