]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - locale/programs/simple-hash.c
Optimize xmalloc, xcalloc, xrealloc, and xstrdup
[thirdparty/glibc.git] / locale / programs / simple-hash.c
index b9cc237e49d786db2ea12cd5ece311000e3fd271..573f7e424d8da0d93a6748e234cadc6279804d68 100644 (file)
@@ -1,5 +1,5 @@
 /* Implement simple hashing table with string based keys.
-   Copyright (C) 1994-1997,2000,2001,2002,2005 Free Software Foundation, Inc.
+   Copyright (C) 1994-1997,2000-2002,2005,2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, October 1994.
 
 #define hashval_t uint32_t
 #include "hashval.h"
 
-extern void *xmalloc (size_t __n);
-extern void *xcalloc (size_t __n, size_t __m);
+extern void *xmalloc (size_t n)
+  __attribute_malloc__ __attribute_alloc_size (1);
+extern void *xcalloc (size_t n, size_t s)
+  __attribute_malloc__ __attribute_alloc_size (1, 2);
 
 typedef struct hash_entry
 {