#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
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.
}
}
- freesa (table);
+ freea (table);
return true;
}
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;
}
}
- freesa (memory);
+ freea (memory);
return true;
}
#endif