From owner-freebsd-current Mon Jul 29 11:27:00 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA14105 for current-outgoing; Mon, 29 Jul 1996 11:27:00 -0700 (PDT) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA14100 for ; Mon, 29 Jul 1996 11:26:57 -0700 (PDT) Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA22390; Mon, 29 Jul 1996 14:26:51 -0400 Date: Mon, 29 Jul 1996 14:26:51 -0400 From: Garrett Wollman Message-Id: <9607291826.AA22390@halloran-eldar.lcs.mit.edu> To: Bruce Evans Cc: wollman@lcs.mit.edu, current@FreeBSD.ORG Subject: Re: `const char rcsid[]' vs -traditional In-Reply-To: <199607291802.EAA08896@godzilla.zeta.org.au> References: <199607291802.EAA08896@godzilla.zeta.org.au> Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk < said: >>> Many sources no longer compile with non-ANSI compilers because they >>> begin with >>> const char rcsid[] = ... >> So? > It's broken for non-ANSI compilers. I'm quite aware of this; indeed, I quoted precisely that in my reply to your original message. This doesn't answer the question of why anyone would care (Terry Lambert excluded). I certainly don't. > It's inconsistent with the care taken in other parts of the sources. > E.g., /usr/src/lib/libc/gen/getosreldate.c, which was written by someone > named wollman, begins with a `const char rcsid[]' but then uses an ugly > `#if __STDC__' to use a new-style header for ANSI compilers without > (further) breaking things for non-ANSI compilers. Don't ask me what I was thinking. If ever I have a need to go back and change that file, hopefully I'll have the sense to remove the nasty conditional. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, ANA, or NSA| - Susan Aglukark and Chad Irschick