]> vcs.slashdirt.org Git - sw/tic2json.git/commitdiff

vcs.slashdirt.org Git - sw/tic2json.git/commitdiff

git git / sw / tic2json.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0c63744)
lexers: %option nounistd
2021年9月15日 16:39:55 +0000 (18:39 +0200)
2021年9月15日 19:44:42 +0000 (21:44 +0200)
We don't need it, it's not always available on embedded platforms


diff --git a/ticv01.l b/ticv01.l
index 45b9edab6b9a53cbe94faa073a375cb5f2d89b8b..f280bcd71c6fc4e71d4a9a3e1112c6b523a08589 100644 (file)
--- a/ticv01.l
+++ b/ticv01.l
@@ -44,6 +44,14 @@
/* we don't need the default rule */
%option nodefault
+/* nounistd suppresses inclusion of the non-ANSI header file unistd.h.
+ This option is meant to target environments in which unistd.h does not exist.
+ Be aware that certain options may cause flex to generate code that relies on
+ functions normally found in unistd.h, (e.g. isatty(), read().)
+ If you wish to use these functions, you will have to inform your compiler where
+ to find them. See option-always-interactive. See option-read. */
+%option nounistd
+
/* batch means that we'll never use the generated lexer interactively. */
%option batch
diff --git a/ticv02.l b/ticv02.l
index 3396a888054989188e9599d8a20a39d2888bb35b..e3cdb9a3ae8180639d328dbd3f68e8d2c94c1961 100644 (file)
--- a/ticv02.l
+++ b/ticv02.l
@@ -28,6 +28,14 @@
/* we don't need the default rule */
%option nodefault
+/* nounistd suppresses inclusion of the non-ANSI header file unistd.h.
+ This option is meant to target environments in which unistd.h does not exist.
+ Be aware that certain options may cause flex to generate code that relies on
+ functions normally found in unistd.h, (e.g. isatty(), read().)
+ If you wish to use these functions, you will have to inform your compiler where
+ to find them. See option-always-interactive. See option-read. */
+%option nounistd
+
/* batch means that we'll never use the generated lexer interactively. */
%option batch
tic2json TIC parser/converter
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /