From owner-freebsd-current Wed Jul 31 02:47:19 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA19051 for current-outgoing; Wed, 31 Jul 1996 02:47:19 -0700 (PDT) Received: from bunyip.cc.uq.oz.au (daemon@bunyip.cc.uq.oz.au [130.102.2.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id CAA19046 for ; Wed, 31 Jul 1996 02:47:13 -0700 (PDT) Received: (from daemon@localhost) by bunyip.cc.uq.oz.au (8.7.5/8.7.3) id TAA29504 for freebsd-current@freebsd.org; Wed, 31 Jul 1996 19:47:09 +1000 Received: from orion.devetir.qld.gov.au by pandora.devetir.qld.gov.au (8.6.10/DEVETIR-E0.3a) with ESMTP id TAA15315 for ; Wed, 31 Jul 1996 19:48:24 +1000 Received: by orion.devetir.qld.gov.au (8.6.10/DEVETIR-0.3) id TAA00654; Wed, 31 Jul 1996 19:47:55 +1000 Date: Wed, 31 Jul 1996 19:47:55 +1000 From: Stephen McKay Message-Id: <199607310947.TAA00654@orion.devetir.qld.gov.au> To: freebsd-current@freebsd.org cc: syssgm@devetir.qld.gov.au Subject: Re: `const char rcsid[]' vs -traditional X-Newsreader: NN version 6.5.0 #1 (NOV) Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Bruce Evans wrote: >Many sources no longer compile with non-ANSI compilers because they >begin with > > const char rcsid[] = ... > >`const' is normally hidden for non-ANSI compilers by defining it as >nothing in , but copyright and id strings are normally >defined before including anything. I find: static const char rcsid[] = ... How long will it be before the ANSI compilers start discarding unreferenced static data? Or is "rcsid" already a special case in gcc? :-) Should we switch to #ident? It doesn't do anything useful on 2.1.5, but we could fix that. #ident "$Id: frobble.c,v ..." What does the C standard say about #ident? Has anyone put a copy of the standard on the web? Stephen.