#include <unistd.h>
#include "libpspp/cast.h"
+#include "libpspp/intern.h"
#include "libpspp/str.h"
#include "libpspp/version.h"
#include "data/settings.h"
void
msg_location_uninit (struct msg_location *loc)
{
- free (loc->file_name);
+ intern_unref (loc->file_name);
}
void
struct msg_location *dst = xmalloc (sizeof *dst);
*dst = (struct msg_location) {
- .file_name = xstrdup_if_nonnull (src->file_name),
+ .file_name = intern_new_if_nonnull (src->file_name),
.first_line = src->first_line,
.last_line = src->last_line,
.first_column = src->first_column,