Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/stand/common constify bootprog_*, move their ...



details:   https://anonhg.NetBSD.org/src/rev/7df0f7c523b5
branches:  trunk
changeset: 471735:7df0f7c523b5
user:      cgd <cgd%NetBSD.org@localhost>
date:      Fri Apr 09 17:50:15 1999 +0000

description:
constify bootprog_*, move their definitions into common.h, and have
the generated vers.c include common.h to check against definitions.

diffstat:

 sys/arch/alpha/stand/common/boot.c     |   4 +---
 sys/arch/alpha/stand/common/common.h   |  10 +++++++++-
 sys/arch/alpha/stand/common/newvers.sh |  10 ++++++----
 3 files changed, 16 insertions(+), 8 deletions(-)

diffs (65 lines):

diff -r fdf77556d03c -r 7df0f7c523b5 sys/arch/alpha/stand/common/boot.c
--- a/sys/arch/alpha/stand/common/boot.c        Fri Apr 09 17:27:38 1999 +0000
+++ b/sys/arch/alpha/stand/common/boot.c        Fri Apr 09 17:50:15 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.20 1999/04/05 22:03:56 cgd Exp $ */
+/* $NetBSD: boot.c,v 1.21 1999/04/09 17:50:15 cgd Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -64,8 +64,6 @@
 
 struct bootinfo_v1 bootinfo_v1;
 
-extern char bootprog_rev[], bootprog_date[], bootprog_maker[];
-
 paddr_t ffp_save, ptbr_save;
 
 extern vaddr_t ssym, esym;
diff -r fdf77556d03c -r 7df0f7c523b5 sys/arch/alpha/stand/common/common.h
--- a/sys/arch/alpha/stand/common/common.h      Fri Apr 09 17:27:38 1999 +0000
+++ b/sys/arch/alpha/stand/common/common.h      Fri Apr 09 17:50:15 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: common.h,v 1.9 1999/04/02 03:23:49 cgd Exp $ */
+/* $NetBSD: common.h,v 1.10 1999/04/09 17:50:15 cgd Exp $ */
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -41,6 +41,14 @@
 
 
 /*
+ * vers.c (generated by newvers.sh)
+ */
+extern const char bootprog_rev[];
+extern const char bootprog_date[];
+extern const char bootprog_maker[];
+
+
+/*
  * booted_dev.c
  */
 
diff -r fdf77556d03c -r 7df0f7c523b5 sys/arch/alpha/stand/common/newvers.sh
--- a/sys/arch/alpha/stand/common/newvers.sh    Fri Apr 09 17:27:38 1999 +0000
+++ b/sys/arch/alpha/stand/common/newvers.sh    Fri Apr 09 17:50:15 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-# $NetBSD: newvers.sh,v 1.2 1999/04/07 06:30:34 cgd Exp $
+# $NetBSD: newvers.sh,v 1.3 1999/04/09 17:50:15 cgd Exp $
 #
 # Copyright (c) 1984, 1986, 1990, 1993
 #      The Regents of the University of California.  All rights reserved.
@@ -40,6 +40,8 @@
 t=`date +"%b %e %H:%M:%S %Z %Y" | sed -e 's,  *, ,g'`
 r=`awk '/^Version:/ { print $2 } ' $1`
 
-echo "char bootprog_rev[] = \"${r}\";" > vers.c
-echo "char bootprog_date[] = \"${t}\";" >> vers.c
-echo "char bootprog_maker[] = \"${u}@${h}\";" >> vers.c
+echo "#include <lib/libsa/stand.h>" > vers.c
+echo "#include \"stand/common/common.h\"" >> vers.c
+echo "const char bootprog_rev[] = \"${r}\";" >> vers.c
+echo "const char bootprog_date[] = \"${t}\";" >> vers.c
+echo "const char bootprog_maker[] = \"${u}@${h}\";" >> vers.c



Home | Main Index | Thread Index | Old Index