Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/fgen Add "%option yylineno" so that error handling c...



details:   https://anonhg.NetBSD.org/src/rev/479b5e476764
branches:  trunk
changeset: 473586:479b5e476764
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Jun 08 12:45:47 1999 +0000

description:
Add "%option yylineno" so that error handling code can use "yylineno".

diffstat:

 usr.bin/fgen/fgen.l |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r a3c7b335ff5b -r 479b5e476764 usr.bin/fgen/fgen.l
--- a/usr.bin/fgen/fgen.l       Tue Jun 08 12:38:20 1999 +0000
+++ b/usr.bin/fgen/fgen.l       Tue Jun 08 12:45:47 1999 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: fgen.l,v 1.7 1999/06/08 12:38:20 tron Exp $    */
+/*     $NetBSD: fgen.l,v 1.8 1999/06/08 12:45:47 tron Exp $    */
 /* FLEX input for FORTH input file scanner */
 /*  
  * Copyright (c) 1998 Eduardo Horvath.
@@ -43,6 +43,8 @@
 */
 %}
 
+%option yylineno
+
 decimal        [0-9]
 hex    [0-9A-Fa-f]
 octal  [0-7]



Home | Main Index | Thread Index | Old Index