lkml.org 
[lkml]   [1998]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux version code
Hi Paul,

> --- linux-2.1.88-raw/Makefile Sun Mar 8 13:55:03 1998
> +++ linux-2.1.88/Makefile Fri Feb 27 10:56:50 1998
> @@ -262,6 +262,7 @@
> include/linux/version.h: ./Makefile
> @echo \#define UTS_RELEASE \"$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)\" > .ver
> @echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver
> + @echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' >>.ver
> @mv -f .ver $@

This looks like a good idea to me, because there are dozens of places
that use their own private macro to do the same thing. I hope Linus
accepts it.

I don't have time to build a kernel with it, but I proofread it. :)

Regards,

Michael Chastain
<mailto:mec@shout.net>
"love without fear"

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.063 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site