Skip to content

Commit 33d71aa

Browse files
committed
Disable use of unistd in flex outputs
Also use never-interactive option
1 parent adb7f55 commit 33d71aa

File tree

4 files changed

+8
-17
lines changed

4 files changed

+8
-17
lines changed

src/assembler/scanner.l

100644100755
+2-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
%option nounput
22
%option noinput
3+
%option nounistd
4+
%option never-interactive
35

46
%{
57

6-
#ifdef _WIN32
7-
#define YY_NO_UNISTD_H
8-
static int isatty(int) { return 0; }
9-
#endif
10-
118
#define PARSER assembler_parser
129
#define YYSTYPE unsigned
1310
#undef ECHO

src/jsil/scanner.l

100644100755
+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
%option nounput
22
%option noinput
3+
%option nounistd
4+
%option never-interactive
35
%option stack
46

57
%{
6-
#ifdef _WIN32
7-
#define YY_NO_UNISTD_H
8-
static int isatty(int) { return 0; }
9-
#endif
108

119
#include <util/expr.h>
1210

src/json/scanner.l

100644100755
+2-4
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@
55
%option 8bit nodefault
66
%option nounput
77
%option noinput
8+
%option nounistd
9+
%option never-interactive
810

911
%option noyywrap
1012

1113
%{
12-
#ifdef _WIN32
13-
#define YY_NO_UNISTD_H
14-
static int isatty(int) { return 0; }
15-
#endif
1614

1715
#define PARSER json_parser
1816

src/xmllang/scanner.l

100644100755
+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
%option 8bit nodefault
22
%option nounput
33
%option noinput
4+
%option nounistd
5+
%option never-interactive
46

57
%{
6-
#ifdef _WIN32
7-
#define YY_NO_UNISTD_H
8-
static int isatty(int) { return 0; }
9-
#endif
108

119
#include <cctype>
1210
#include <cstring>

0 commit comments

Comments
 (0)