Mike Gerdts wrote:
> On 3/14/07, Garrett D'Amore <[EMAIL PROTECTED]> wrote:
>> One potential concern.  I know of certain bits of code where strings
>> like "$Id: some text$" are "edited" in place to form version numbers
>> from $Id$ and similar strings.
>>
>> The places I can think of actually occur in kernel code!
>
> At least in the RCS/CVS world  those values are filled in at checkout
> from the source repository.  I would be quite surprised to find any
> meaningful use of expanding those at runtime rather than before a
> build even starts.  The compiler can and should treat them as static
> strings because they are not altered at runtime.

The problem isn't doing keyword expansion, but "beautifying" the strings
for use in cmn_err() and modinfo output.   (In this case, it largely
amounts to stripping off the trailing "$".

    -- Garrett


_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to