#define MAXDELTA 4 /**< nr of times kept for delta backref */
#define MAXGROUP 24 /**< maximum number of regex match groups */
-#define xmalloc malloc
-#define xrealloc realloc
#define xfree free
-#define xstrdup strdup
+static inline char *xstrdup(const char *str)
+{
+ char *ret = strdup (str);
+ if (unlikely(ret == NULL))
+ abort();
+ return ret;
+}
/** state of a running import */
struct asa_import_state {
#undef iargs
/** vm functions. KEEP IN SYNC WITH imports.h! */
-static asa_import_func importfuncs[] = {
+static const asa_import_func importfuncs[] = {
asai_commit,
asai_discard,
asai_break,