Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config Some drivers want to include ioconf.h, so gen...
details: https://anonhg.NetBSD.org/src/rev/2ac5ec76e800
branches: trunk
changeset: 753291:2ac5ec76e800
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Mar 22 14:40:54 2010 +0000
description:
Some drivers want to include ioconf.h, so generate it if doing
"ioconf" config.
diffstat:
usr.bin/config/defs.h | 3 ++-
usr.bin/config/main.c | 3 ++-
usr.bin/config/mkheaders.c | 5 ++---
3 files changed, 6 insertions(+), 5 deletions(-)
diffs (60 lines):
diff -r 8be6aff1af98 -r 2ac5ec76e800 usr.bin/config/defs.h
--- a/usr.bin/config/defs.h Mon Mar 22 13:15:54 2010 +0000
+++ b/usr.bin/config/defs.h Mon Mar 22 14:40:54 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: defs.h,v 1.33 2010/03/08 10:19:14 pooka Exp $ */
+/* $NetBSD: defs.h,v 1.34 2010/03/22 14:40:54 pooka Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -526,6 +526,7 @@
int mkheaders(void);
int moveifchanged(const char *, const char *);
int emitlocs(void);
+int emitioconfh(void);
/* mkioconf.c */
int mkioconf(void);
diff -r 8be6aff1af98 -r 2ac5ec76e800 usr.bin/config/main.c
--- a/usr.bin/config/main.c Mon Mar 22 13:15:54 2010 +0000
+++ b/usr.bin/config/main.c Mon Mar 22 14:40:54 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.41 2010/03/08 10:19:14 pooka Exp $ */
+/* $NetBSD: main.c,v 1.42 2010/03/22 14:40:54 pooka Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -388,6 +388,7 @@
pack();
mkioconf();
emitlocs();
+ emitioconfh();
return 0;
}
diff -r 8be6aff1af98 -r 2ac5ec76e800 usr.bin/config/mkheaders.c
--- a/usr.bin/config/mkheaders.c Mon Mar 22 13:15:54 2010 +0000
+++ b/usr.bin/config/mkheaders.c Mon Mar 22 14:40:54 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkheaders.c,v 1.17 2010/02/03 21:00:49 pooka Exp $ */
+/* $NetBSD: mkheaders.c,v 1.18 2010/03/22 14:40:54 pooka Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -59,7 +59,6 @@
static int emitcnt(struct nvlist *);
static int emitopts(void);
-static int emitioconfh(void);
static int emittime(void);
static int herr(const char *, const char *, FILE *);
static int defopts_print(const char *, void *, void *);
@@ -376,7 +375,7 @@
* Build the "ioconf.h" file with extern declarations for all configured
* cfdrivers.
*/
-static int
+int
emitioconfh(void)
{
const char *tfname;
Home |
Main Index |
Thread Index |
Old Index