Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/config Return new terminal QSTRING for quoted strin...



details:   https://anonhg.NetBSD.org/src/rev/44be019b6821
branches:  trunk
changeset: 533121:44be019b6821
user:      ross <ross%NetBSD.org@localhost>
date:      Sat Jun 22 02:04:28 2002 +0000

description:
Return new terminal QSTRING for quoted strings,  instead of the
usual symbol name type WORD; quoted strings can now only be used
where they appear in the (revised) grammar. See gram.y 1.34.

diffstat:

 usr.sbin/config/scan.l |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 96945a0f3463 -r 44be019b6821 usr.sbin/config/scan.l
--- a/usr.sbin/config/scan.l    Sat Jun 22 00:01:10 2002 +0000
+++ b/usr.sbin/config/scan.l    Sat Jun 22 02:04:28 2002 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: scan.l,v 1.31 2002/06/05 10:56:19 lukem Exp $  */
+/*     $NetBSD: scan.l,v 1.32 2002/06/22 02:04:28 ross Exp $   */
 
 /*
  * Copyright (c) 1992, 1993
@@ -144,7 +144,7 @@
                        unput(tok);
                }
                yylval.str = intern(yytext + 1);
-               return WORD;
+               return QSTRING;
        }
 0[0-7]*        {
                yylval.val = strtol(yytext, NULL, 8);



Home | Main Index | Thread Index | Old Index