aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_l.l
diff options
context:
space:
mode:
Diffstat (limited to 'rcfile_l.l')
-rw-r--r--rcfile_l.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/rcfile_l.l b/rcfile_l.l
index 9a1fe637..8dcd8af1 100644
--- a/rcfile_l.l
+++ b/rcfile_l.l
@@ -19,6 +19,8 @@ int prc_lineno = 1;
#define SETSTATE(n) BEGIN(n)
#endif /* LEXDEBUG */
+#define YY_NO_INPUT
+
%}
/* this doesn't work with Linux lex, see the INSTALL file */
@@ -244,7 +246,7 @@ void escapes(const char *cp /** source string with escapes */,
* always succeed! */
if (*cp == '\\' && cp[1] && strchr("0123456789xX", cp[1]))
{
- char *dp;
+ const char *dp;
const char *hex = "00112233445566778899aAbBcCdDeEfF";
int dcount = 0;