Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hpc/hpc/platid_gen Use "option noyywrap".



details:   https://anonhg.NetBSD.org/src/rev/eef6fd409f78
branches:  trunk
changeset: 765067:eef6fd409f78
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Wed May 18 12:10:22 2011 +0000

description:
Use "option noyywrap".

diffstat:

 sys/arch/hpc/hpc/platid_gen/scan.l |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 48438ecc18a4 -r eef6fd409f78 sys/arch/hpc/hpc/platid_gen/scan.l
--- a/sys/arch/hpc/hpc/platid_gen/scan.l        Wed May 18 06:36:48 2011 +0000
+++ b/sys/arch/hpc/hpc/platid_gen/scan.l        Wed May 18 12:10:22 2011 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: scan.l,v 1.4 2006/02/19 13:06:06 peter Exp $   */
+/*     $NetBSD: scan.l,v 1.5 2011/05/18 12:10:22 nonaka Exp $  */
 
 /*-
  * Copyright (c) 1999
@@ -43,10 +43,9 @@
 int    yyline;
 char   *getstr(char *);
 void   getcomment(void);
+%}
 
-#define        yywrap() 1
-
-%}
+%option        noyywrap
 
 %%
 #[^\n]*\n              { yylval.str = strdup(yytext); yyline++; return DIRECTIVE; }



Home | Main Index | Thread Index | Old Index