* base commit d8c269b0fae9a8f8904e16e92313da165d664c74
****************************************************************************/
#include "config.h"
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <vlc_input.h>
#include <vlc_demux.h>
#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,