Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config After yyparse() is done, print not file but s...
details: https://anonhg.NetBSD.org/src/rev/0c8a58139086
branches: trunk
changeset: 332885:0c8a58139086
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sat Oct 11 09:09:19 2014 +0000
description:
After yyparse() is done, print not file but stage for debug.
diffstat:
usr.bin/config/main.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diffs (93 lines):
diff -r 0f92cbdec2c2 -r 0c8a58139086 usr.bin/config/main.c
--- a/usr.bin/config/main.c Sat Oct 11 09:06:29 2014 +0000
+++ b/usr.bin/config/main.c Sat Oct 11 09:09:19 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.65 2014/10/11 03:17:40 uebayasi Exp $ */
+/* $NetBSD: main.c,v 1.66 2014/10/11 09:09:19 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -149,6 +149,7 @@
int badfilename(const char *fname);
const char *progname;
+extern const char *yyfile;
int
main(int argc, char **argv)
@@ -407,16 +408,19 @@
/*
* Handle command line overrides
*/
+ yyfile = "handle_cmdline_makeoptions";
handle_cmdline_makeoptions();
/*
* Detect and properly ignore orphaned devices
*/
+ yyfile = "kill_orphans";
kill_orphans();
/*
* Select devices and pseudo devices and their attributes
*/
+ yyfile = "fixdevis";
if (fixdevis())
stop();
@@ -424,9 +428,13 @@
* If working on an ioconf-only config, process here and exit
*/
if (ioconfname) {
+ yyfile = "pack";
pack();
+ yyfile = "mkioconf";
mkioconf();
+ yyfile = "emitlocs";
emitlocs();
+ yyfile = "emitioconfh";
emitioconfh();
return 0;
}
@@ -434,23 +442,27 @@
/*
* Deal with option dependencies.
*/
+ yyfile = "dependopts";
dependopts();
/*
* Fix (as in `set firmly in place') files.
*/
+ yyfile = "fixfiles";
if (fixfiles())
stop();
/*
* Fix objects and libraries.
*/
+ yyfile = "fixobjects";
if (fixobjects())
stop();
/*
* Fix device-majors.
*/
+ yyfile = "fixdevsw";
if (fixdevsw())
stop();
@@ -474,10 +486,13 @@
* Squeeze things down and finish cross-checks (STAR checks must
* run after packing).
*/
+ yyfile = "pack";
pack();
+ yyfile = "badstar";
if (badstar())
stop();
+ yyfile = NULL;
/*
* Ready to go. Build all the various files.
*/
Home |
Main Index |
Thread Index |
Old Index