projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
q2c: Prefer lex_match_id() over lex_match_hyphenated_word() in emitted code.
[pspp]
/
src
/
libpspp
/
msg-locator.c
diff --git
a/src/libpspp/msg-locator.c
b/src/libpspp/msg-locator.c
index 09550e29ac9c802def722eb8269d50efb9ab726d..fb8082e9217f6d7d4614b35e9a347761e8ad356a 100644
(file)
--- a/
src/libpspp/msg-locator.c
+++ b/
src/libpspp/msg-locator.c
@@
-17,8
+17,9
@@
#include <config.h>
#include <stdlib.h>
#include "msg-locator.h"
#include <config.h>
#include <stdlib.h>
#include "msg-locator.h"
-#include <libpspp/message.h>
#include <libpspp/assertion.h>
#include <libpspp/assertion.h>
+#include <libpspp/cast.h>
+#include <libpspp/message.h>
#include "getl.h"
#include "xalloc.h"
#include "getl.h"
#include "xalloc.h"
@@
-77,7
+78,7
@@
get_msg_location (const struct source_stream *ss, struct msg_locator *loc)
}
else
{
}
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);
}
}
loc->line_number = getl_source_location (ss);
}
}