summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/bc/scan.l7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/bc/scan.l b/usr.bin/bc/scan.l
index ea243f70e25..ca700b6031c 100644
--- a/usr.bin/bc/scan.l
+++ b/usr.bin/bc/scan.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: scan.l,v 1.17 2005/03/28 17:43:28 deraadt Exp $ */
+/* $OpenBSD: scan.l,v 1.18 2005/04/13 06:36:03 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -18,13 +18,14 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: scan.l,v 1.17 2005/03/28 17:43:28 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: scan.l,v 1.18 2005/04/13 06:36:03 otto Exp $";
#endif /* not lint */
#include <err.h>
#include <signal.h>
#include <stdbool.h>
#include <string.h>
+#include <unistd.h>
#include "extern.h"
#include "pathnames.h"
@@ -42,6 +43,8 @@ static void add_str(const char *);
%}
+%option always-interactive
+
DIGIT [0-9A-F]
ALPHA [a-z_]
ALPHANUM [a-z_0-9]