Permalink
Browse files

atc game: lex cleanup

  • Loading branch information...
1 parent 52e9aa7 commit 81cb0ba09aeac0397eca73630a0ee8296678f1cb @jrmarino jrmarino committed Jan 19, 2013
Showing with 3 additions and 4 deletions.
  1. +3 −4 games/atc/lex.l
View
@@ -31,7 +31,6 @@
* SUCH DAMAGE.
*
* @(#)lex.l 8.1 (Berkeley) 5/31/93
- * $DragonFly: src/games/atc/lex.l,v 1.3 2006/08/08 15:03:02 pavalos Exp $
*/
/*
@@ -43,14 +42,14 @@
* For more info on this and all of my stuff, mail edjames@berkeley.edu.
*/
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include "y.tab.h"
-#define YY_NO_INPUT
-#define YY_NO_UNPUT
extern int line;
-extern int yylex(void);
%}
+%option nounput
+%option noinput
%%
[0-9]+ { yylval.ival = atoi(yytext); return(ConstOp); }
height { return(HeightOp); }

0 comments on commit 81cb0ba

Please sign in to comment.