This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: simple libiberty/hashtab.c changes


I would prefer to see those stay, I think they are useful as
documentation.

Okay. Here's a revised patch.


2005-02-24 Ben Elliston <bje@au.ibm.com>

        * hashtab.c (htab_find_slot_with_hash): Make function
        documentation clearer.

Index: hashtab.c
===================================================================
RCS file: /cvs/src/src/libiberty/hashtab.c,v
retrieving revision 1.27
diff -u -p -r1.27 hashtab.c
--- hashtab.c   22 Apr 2004 18:39:03 -0000      1.27
+++ hashtab.c   24 Feb 2005 10:49:48 -0000
@@ -621,11 +621,11 @@ htab_find (htab, element)

 /* This function searches for a hash table slot containing an entry
    equal to the given element.  To delete an entry, call this with
-   INSERT = 0, then call htab_clear_slot on the slot returned (possibly
-   after doing some checks).  To insert an entry, call this with
-   INSERT = 1, then write the value you want into the returned slot.
-   When inserting an entry, NULL may be returned if memory allocation
-   fails.  */
+   insert=NO_INSERT, then call htab_clear_slot on the slot returned
+   (possibly after doing some checks).  To insert an entry, call this
+   with insert=INSERT, then write the value you want into the returned
+   slot.  When inserting an entry, NULL may be returned if memory
+   allocation fails.  */

 PTR *
 htab_find_slot_with_hash (htab, element, hash, insert)

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]