summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-03-13 12:26:53 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:13:01 +0200
commit6a9dc74c1a0fa3a0228a5eb6d0315269320e385a (patch)
tree2125f71e58774838c5aa6c420f4e2e47844d4beb
parent66667120b7317d90604f110316c5222bd4013b52 (diff)
downloadexternal_gettext-6a9dc74c1a0fa3a0228a5eb6d0315269320e385a.zip
external_gettext-6a9dc74c1a0fa3a0228a5eb6d0315269320e385a.tar.gz
external_gettext-6a9dc74c1a0fa3a0228a5eb6d0315269320e385a.tar.bz2
Fix a documentation mistake.
-rw-r--r--gettext-tools/lib/hash.c4
-rw-r--r--gettext-tools/lib/hash.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/gettext-tools/lib/hash.c b/gettext-tools/lib/hash.c
index 4ffd83b..cb9c6bb 100644
--- a/gettext-tools/lib/hash.c
+++ b/gettext-tools/lib/hash.c
@@ -1,5 +1,5 @@
/* hash - implement simple hashing table with string based keys.
- Copyright (C) 1994-1995, 2000-2005 Free Software Foundation, Inc.
+ Copyright (C) 1994-1995, 2000-2006 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, October 1994.
This program is free software; you can redistribute it and/or modify
@@ -323,7 +323,7 @@ hash_set_value (hash_table *htab,
/* Steps *PTR forward to the next used entry in the given hash table. *PTR
should be initially set to NULL. Store information about the next entry
in *KEY, *KEYLEN, *DATA.
- Return 0. */
+ Return 0 normally, -1 when the whole hash table has been traversed. */
int
hash_iterate (hash_table *htab, void **ptr, const void **key, size_t *keylen,
void **data)
diff --git a/gettext-tools/lib/hash.h b/gettext-tools/lib/hash.h
index e4653e5..6c4e71a 100644
--- a/gettext-tools/lib/hash.h
+++ b/gettext-tools/lib/hash.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 2000-2003, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 2000-2003, 2005-2006 Free Software Foundation, Inc.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
@@ -66,7 +66,7 @@ extern int hash_set_value (hash_table *htab,
/* Steps *PTR forward to the next used entry in the given hash table. *PTR
should be initially set to NULL. Store information about the next entry
in *KEY, *KEYLEN, *DATA.
- Return 0. */
+ Return 0 normally, -1 when the whole hash table has been traversed. */
extern int hash_iterate (hash_table *htab, void **ptr,
const void **key, size_t *keylen,
void **data);