From owner-freebsd-standards Tue Feb 19 11:48: 4 2002 Delivered-To: freebsd-standards@freebsd.org Received: from hda.hda.com (host65.hda.com [63.104.68.65]) by hub.freebsd.org (Postfix) with ESMTP id 3F46F37B416; Tue, 19 Feb 2002 11:48:00 -0800 (PST) Received: (from dufault@localhost) by hda.hda.com (8.11.6/8.11.6) id g1JJlvs00665; Tue, 19 Feb 2002 14:47:57 -0500 (EST) (envelope-from dufault) Date: Tue, 19 Feb 2002 14:47:56 -0500 From: Peter Dufault To: Mike Barcroft Cc: "Jacques A. Vidrine" , Chuck Rouillard , FreeBSD-Standards Subject: Re: pathchk - review Message-ID: <20020219144756.A636@hda.hda.com> References: <20020129210829.GC50337@madman.nectar.cc> <20020205232519.N7805-101000@opus.sandiegoca.ncr.com> <20020212170303.B55750@espresso.q9media.com> <20020217020217.GB46829@madman.nectar.cc> <20020217004339.J57687@espresso.q9media.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020217004339.J57687@espresso.q9media.com>; from mike@FreeBSD.ORG on Sun, Feb 17, 2002 at 12:43:39AM -0500 Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > The type is a pointer to a read-only string. The type he was really > looking for was a read-only pointer to a read-only string: > > const char * const VARIABLE; > > But as I suggested, manifest constants are better. No, debuggers don't handle them well. "When possible, avoid the preprocessor" IMHO. The same applies to magic numbers versus enums. Peter -- Peter Dufault (dufault@hda.com) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message