diff options
author | Bruno Haible <bruno@clisp.org> | 2007-06-09 11:11:14 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-06-09 11:11:14 +0000 |
commit | 90988ede07abd2e58283d5e06b1b69f74b6967d2 (patch) | |
tree | b4fe189a7179707b12ed3697811c36e0975e9a1c /lib/mbscasestr.c | |
parent | 8b420b18471251565faf524a4e9dbbe27e298d78 (diff) | |
download | gnulib-90988ede07abd2e58283d5e06b1b69f74b6967d2.tar.gz |
Update after allocsa -> malloca renaming.
Diffstat (limited to 'lib/mbscasestr.c')
-rw-r--r-- | lib/mbscasestr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mbscasestr.c b/lib/mbscasestr.c index ce28342c49..b23a3b68d9 100644 --- a/lib/mbscasestr.c +++ b/lib/mbscasestr.c @@ -25,7 +25,7 @@ #include <stdbool.h> #include <stddef.h> /* for NULL, in case a nonstandard string.h lacks it */ -#include "allocsa.h" +#include "malloca.h" #if HAVE_MBRTOWC # include "mbuiter.h" #endif @@ -43,7 +43,7 @@ knuth_morris_pratt_unibyte (const char *haystack, const char *needle, size_t m = strlen (needle); /* Allocate the table. */ - size_t *table = (size_t *) allocsa (m * sizeof (size_t)); + size_t *table = (size_t *) malloca (m * sizeof (size_t)); if (table == NULL) return false; /* Fill the table. @@ -118,7 +118,7 @@ knuth_morris_pratt_unibyte (const char *haystack, const char *needle, } } - freesa (table); + freea (table); return true; } @@ -132,7 +132,7 @@ knuth_morris_pratt_multibyte (const char *haystack, const char *needle, size_t *table; /* Allocate room for needle_mbchars and the table. */ - char *memory = (char *) allocsa (m * (sizeof (mbchar_t) + sizeof (size_t))); + char *memory = (char *) malloca (m * (sizeof (mbchar_t) + sizeof (size_t))); if (memory == NULL) return false; needle_mbchars = (mbchar_t *) memory; @@ -238,7 +238,7 @@ knuth_morris_pratt_multibyte (const char *haystack, const char *needle, } } - freesa (memory); + freea (memory); return true; } #endif |