Subject: Re: stand/.../newvers.sh
To: Andrew Brown <atatat@atatdot.net>
From: Simon Burge <simonb@netbsd.org>
List: tech-kern
Date: 04/16/1999 18:03:12
Andrew Brown wrote:

> >> >From this, I'm tempted to nuke "vers.c" and make a "vers.h" that's
> >> included by boot.c (or whatever) and make the printf()s would look like:
> >> 
> >> 	printf("NetBSD/" MACHINE " " NETBSD_VERS " " BOOT_TYPE_NAME
> >> 	    " Bootstrap, Revision " BOOTPROG_VERS "\n");
> >> 	printf("(" BOOTPROG_MAKER ", " BOOTPROG_DATE ")\n");
> >...
> >It'll undoubtedly annoy the "must be K&R C" purists, if there are any
> >of those still about, but annoying them is fun anyway.  8-)
> 
> well...if you wanted to placate any of them, it could just be changed
> to
> 
> 	printf("NetBSD/%s %s %s Bootstrap, Revision %s\n",
> 		MACHINE, NETBSD_VERS, BOOT_TYPE_NAME, BOOTPROG_VERS);
> 	printf("(%s, %s)\n",
> 		BOOTPROG_MAKER, BOOTPROG_DATE);
> 
> not that it really "matters" to me or anything...  :)

The "problem" with this is that it takes up too much space :-)

Ignatios suggested the __STDC__ dance, but we're in code that is
pretty much already compiler dependant (witness more ports using
-Os to constain code size).

I'll do some more work to flesh this out and post more about it
it here when I've got that done...

Simon.