From owner-freebsd-current@FreeBSD.ORG Fri Mar 3 08:09:26 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9C4516A422; Fri, 3 Mar 2006 08:09:26 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12E1543D7D; Fri, 3 Mar 2006 08:09:14 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k2388wBw058731; Fri, 3 Mar 2006 10:08:58 +0200 (EET) (envelope-from dmitry@atlantis.dp.ua) Date: Fri, 3 Mar 2006 10:08:58 +0200 (EET) From: Dmitry Pryanishnikov To: "Greg 'groggy' Lehey" In-Reply-To: <20060303004506.GA13218@wantadilla.lemis.com> Message-ID: <20060303100241.E42653@atlantis.atlantis.dp.ua> References: <4407226D.3050901@freebsd.org> <20060302171112.A77029@fledge.watson.org> <20060302105229.P83093@atlantis.atlantis.dp.ua> <20060302163633.H77029@fledge.watson.org> <4407226D.3050901@freebsd.org> <20060302.100922.130234735.imp@bsdimp.com> <20060302105229.P83093@atlantis.atlantis.dp.ua> <20060302.100608.80501136.imp@bsdimp.com> <20060302105229.P83093@atlantis.atlantis.dp.ua> <200002110637.RAA79715@freebie.lemis.com> <20060303004506.GA13218@wantadilla.lemis.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@FreeBSD.org, Robert Watson , cperciva@FreeBSD.org, "M. Warner Losh" Subject: Re: style(9) question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2006 08:09:26 -0000 Hello! On Fri, 3 Mar 2006, Greg 'groggy' Lehey wrote: >> Before 'void' existed, many people recommended () so that you could >> make 'return' a macro for extra debugging. With void functions that >> have naked returns make this impossible these days... > > This is actually a useful property. Pity it's gone. It's gone only for void functions. Anyway programmer usually wants to debug code on function-by-function basis, and one can still #define return macros for one (non-void) function and #undef it after this function. Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE