#include <config.h>
#include <stdlib.h>
-#include <libpspp/alloc.h>
#include "msg-locator.h"
-#include <libpspp/message.h>
#include <libpspp/assertion.h>
+#include <libpspp/cast.h>
+#include <libpspp/message.h>
#include "getl.h"
+#include "xalloc.h"
+
/* File locator stack. */
static const struct msg_locator **file_loc;
}
else
{
- loc->file_name = getl_source_name (ss);
+ loc->file_name = CONST_CAST (char *, getl_source_name (ss));
loc->line_number = getl_source_location (ss);
}
}