Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Mar 2004 20:30:14 +0000
From:      Colin Percival <colin.percival@wadham.ox.ac.uk>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        hackers@freebsd.org
Subject:   Re: Style(9) and portability
Message-ID:  <6.0.1.1.1.20040306202423.04239cf8@imap.sfu.ca>
In-Reply-To: <404A320D.8090905@kientzle.com>
References:  <404A320D.8090905@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 20:18 06/03/2004, Tim Kientzle wrote:
>I've been scratching my head over
>how to deal with the version ID code
>that is supposed to apear as the first
>two lines of any FreeBSD source file:
>
>#include <sys/cdefs.h>
>__FBSDID("$FreeBSD$");
>
>Clearly, I cannot reasonably assume that all
>platforms define a __FBSDID macro in
>sys/cdefs.h.

   Portability doesn't mean "the code wiil compile
on every platform and C compiler in the world".
Most platforms will have their own packaging
systems and directory hierarchy, so *some* changes
will have to be made every time code is ported; as
long as the necessary changes are obvious, I don't
see that there is any real problem.

Colin Percival




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.1.1.1.20040306202423.04239cf8>