]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Index: include/ChangeLog
authorGeoffrey Keating <geoffk@redhat.com>
Thu, 6 Jun 2002 03:23:27 +0000 (03:23 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Thu, 6 Jun 2002 03:23:27 +0000 (03:23 +0000)
Index: include/ChangeLog
* hashtab.h (htab_create): Restore prototype for backward
compatibility.
(htab_try_create): Likewise.

Index: libiberty/ChangeLog
* hashtab.c (htab_create): New stub function for backward
compatibility.
(htab_try_create): Likewise.

From-SVN: r54300

include/ChangeLog
include/hashtab.h
libiberty/ChangeLog
libiberty/hashtab.c

index 75ce45ab2764df1797490ab31dab00261acc2304..7b1dc5a965ae604f28f481585150a3b021eb869f 100644 (file)
@@ -1,3 +1,9 @@
+2002-06-05  Geoffrey Keating  <geoffk@redhat.com>
+
+       * hashtab.h (htab_create): Restore prototype for backward
+       compatibility.
+       (htab_try_create): Likewise.
+
 2002-05-22  Geoffrey Keating  <geoffk@redhat.com>
 
        * hashtab.h (struct htab): Update for change to length specifier.
index a3ae5ae37fa7622e243309c03b0ed497ce29e336..4e5b4e7dccd8790157dd5f8b3feae837126d66dd 100644 (file)
@@ -128,7 +128,11 @@ extern htab_t      htab_create_alloc       PARAMS ((size_t, htab_hash,
                                                 htab_eq, htab_del,
                                                 htab_alloc, htab_free));
 
-/* Provided for convenience... */
+/* Backward-compatibility functions.  */
+extern htab_t htab_create PARAMS ((size_t, htab_hash, htab_eq, htab_del));
+extern htab_t htab_try_create PARAMS ((size_t, htab_hash, htab_eq, htab_del));
+
+/* Provided for convenience.  */
 #define htab_create(SIZE, HASH, EQ, DEL) \
   htab_create_alloc (SIZE, HASH, EQ, DEL, xcalloc, free)
 
index 5abfbebaa26736355466c381f64b847b462a420b..916995e5b12429398437af77c57bc6d11625b2da 100644 (file)
@@ -1,3 +1,9 @@
+2002-06-05  Geoffrey Keating  <geoffk@redhat.com>
+
+       * hashtab.c (htab_create): New stub function for backward
+       compatibility.
+       (htab_try_create): Likewise.
+
 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
 
        * hashtab.c (htab_create): Delete.
index 06e41ac29e5021162b77be0e21e78afcffc781fb..6bf59ff7378ef18d9d0951e038d15f4efa30e111 100644 (file)
@@ -191,6 +191,29 @@ htab_create_alloc (size, hash_f, eq_f, del_f, alloc_f, free_f)
   return result;
 }
 
+/* These functions exist solely for backward compatibility.  */
+
+#undef htab_create
+htab_t
+htab_create (size, hash_f, eq_f, del_f)
+     size_t size;
+     htab_hash hash_f;
+     htab_eq eq_f;
+     htab_del del_f;
+{
+  return htab_create_alloc (size, hash_f, eq_f, del_f, xcalloc, free);
+}
+
+htab_t
+htab_try_create (size, hash_f, eq_f, del_f)
+     size_t size;
+     htab_hash hash_f;
+     htab_eq eq_f;
+     htab_del del_f;
+{
+  return htab_create_alloc (size, hash_f, eq_f, del_f, calloc, free);
+}
+
 /* This function frees all memory allocated for given hash table.
    Naturally the hash table must already exist. */