Skip to content

Commit

Permalink
Block running lex with incompatible source code
Browse files Browse the repository at this point in the history
  • Loading branch information
olebole committed Oct 5, 2017
1 parent 0ff4449 commit 44942b6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions pkg/cl/mkpkg
Expand Up @@ -16,8 +16,10 @@ relink:

$ifeq (hostid, unix)
$ifolder (lexyy.c, grammar.l)
$echo "rebuilding lexyy.c"
!lex -t grammar.l | sed -f lex.sed > lexyy.c
# lexyy.c cannot be re-created in the moment due to lex incompatibilities
# with modern lex implementations.
# $echo "rebuilding lexyy.c"
# !lex -t grammar.l | sed -f lex.sed > lexyy.c
$endif
$ifolder (ytab.c, grammar.y)
$echo "rebuilding ytab.c"
Expand Down
6 changes: 4 additions & 2 deletions pkg/ecl/mkpkg
Expand Up @@ -19,8 +19,10 @@ relink:

$ifeq (hostid, unix)
$ifolder (lexyy.c, grammar.l)
$echo "rebuilding lexyy.c"
!lex -t grammar.l | sed -f lex.sed > lexyy.c
# lexyy.c cannot be re-created in the moment due to lex incompatibilities
# with modern lex implementations.
# $echo "rebuilding lexyy.c"
# !lex -t grammar.l | sed -f lex.sed > lexyy.c
$endif
$ifolder (ytab.c, grammar.y)
$echo "rebuilding ytab.c"
Expand Down
6 changes: 4 additions & 2 deletions pkg/vocl/mkpkg
Expand Up @@ -19,8 +19,10 @@ relink:

$ifeq (hostid, unix)
$ifolder (lexyy.c, grammar.l)
$echo "rebuilding lexyy.c"
!lex -t grammar.l | sed -f lex.sed > lexyy.c
# lexyy.c cannot be re-created in the moment due to lex incompatibilities
# with modern lex implementations.
# $echo "rebuilding lexyy.c"
# !lex -t grammar.l | sed -f lex.sed > lexyy.c
$endif
$ifolder (ytab.c, grammar.y)
$echo "rebuilding ytab.c"
Expand Down

0 comments on commit 44942b6

Please sign in to comment.