Module Name: src
Committed By: dholland
Date: Sun Mar 11 01:09:42 UTC 2012
Modified Files:
src/usr.bin/config: gram.y
Log Message:
A bit more of previous.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/usr.bin/config/gram.y
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/config/gram.y
diff -u src/usr.bin/config/gram.y:1.26 src/usr.bin/config/gram.y:1.27
--- src/usr.bin/config/gram.y:1.26 Sun Mar 11 00:57:44 2012
+++ src/usr.bin/config/gram.y Sun Mar 11 01:09:42 2012
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: gram.y,v 1.26 2012/03/11 00:57:44 dholland Exp $ */
+/* $NetBSD: gram.y,v 1.27 2012/03/11 01:09:42 dholland Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -208,9 +208,9 @@ topthings:
/* Directory specification. */
topthing:
- SOURCE filename '\n' { if (!srcdir) srcdir = $2; }
+ '\n'
+ | SOURCE filename '\n' { if (!srcdir) srcdir = $2; }
| BUILD filename '\n' { if (!builddir) builddir = $2; }
- | '\n'
;
/* "machine foo" from std.whatever */
@@ -229,8 +229,8 @@ subarches_opt:
/* Subarches declaration. */
subarches:
- subarches WORD { $$ = new_nx($2, $1); }
- | WORD { $$ = new_n($1); }
+ WORD { $$ = new_n($1); }
+ | subarches WORD { $$ = new_nx($2, $1); }
;
/************************************************************/