From owner-freebsd-current Tue Jun 27 9: 8: 0 2000 Delivered-To: freebsd-current@freebsd.org Received: from bugg.strangled.net (c705742-a.htfdw1.ct.home.com [24.2.137.94]) by hub.freebsd.org (Postfix) with ESMTP id A659B37C09D for ; Tue, 27 Jun 2000 09:07:56 -0700 (PDT) (envelope-from bugg@bugg.strangled.net) Received: (from bugg@localhost) by bugg.strangled.net (8.9.3/8.9.3) id MAA03828; Tue, 27 Jun 2000 12:08:56 -0400 (EDT) (envelope-from bugg) Date: Tue, 27 Jun 2000 12:08:55 -0400 From: Dan Papasian To: Alexander Langer Cc: Clive Lin , FreeBSD current Subject: Re: let badsect recog IFCHR in 5.0-C Message-ID: <20000627120855.A3798@moe.c705742-a.htfdw1.ct.home.com> References: <20000627230456.A18587@cartier.cirx.org> <20000627173821.A98097@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000627173821.A98097@cichlids.cichlids.com>; from alex@big.endian.de on Tue, Jun 27, 2000 at 05:38:21PM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jun 27, 2000 at 05:38:21PM +0200, Alexander Langer wrote: > Thus spake Clive Lin (clive@CirX.ORG): > > > - memcpy(name_dir_end + 1, name_dir_end, strlen(name_dir_end) + 1); > > - *name_dir_end = 'r'; > > + // un-needed. > > + // memcpy(name_dir_end + 1, name_dir_end, strlen(name_dir_end) + 1); > > + // *name_dir_end = 'r'; > > Use /* */ comments or #if 0. Actually, there was just a discussion on comp.lang.c about how they aren't interchangable. The 'un-needed' part will have to be commented with /* */ because the preprocessor will parse tokens before it evaluates conditionals. Fairly interesting read, but the majority of you probably knew that anyway :) > Please see style(9) :) I don't see style(9) referring to using #if 0, but that's ok :) -Dan > Alex > > -- > cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message