X-Original-To: pgsql-hackers@postgresql.org Received: from lerami.lerctr.org (lerami.lerctr.org [207.158.72.11]) by postgresql.org (Postfix) with ESMTP id AD5AE475921; Thu, 13 Mar 2003 16:32:51 -0500 (EST) Received: from pppth08-305.ght.iadfw.net (pppth08-305.ght.iadfw.net [207.136.52.179]) (authenticated bits=0) by lerami.lerctr.org (8.12.8/8.12.8/20030225) with ESMTP id h2DLWmfS006512; Thu, 13 Mar 2003 15:32:50 -0600 (CST) Date: Thu, 13 Mar 2003 15:32:44 -0600 From: Larry Rosenman To: Tom Lane Cc: pgsql-hackers@postgresql.org, pgsql-interfaces@postgresql.org Subject: Re: Upgrading the backend's error-message infrastructure Message-ID: <93930000.1047591163@lerlaptop.lerctr.org> In-Reply-To: <9376.1047590421@sss.pgh.pa.us> References: <9168.1047588660@sss.pgh.pa.us> <73290000.1047590020@lerlaptop.lerctr.org> <9376.1047590421@sss.pgh.pa.us> X-Mailer: Mulberry/3.0.2 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Archive-Number: 200303/572 X-Sequence-Number: 36818 --On Thursday, March 13, 2003 16:20:21 -0500 Tom Lane wrote: > Larry Rosenman writes: >> __FUNCTION__ or an equivalent is MANDATED by C99, and available on >> UnixWare's native cc. >> You might want to make a configure test for it. > > Right, __func__ is the C99 spelling. I did have a configure test in > mind here: __func__ or __FUNCTION__ or NULL is what would get compiled > in. One nice thing about this approach is that we need change only one > place to adjust the set of behind-the-scenes error parameters. > Ok, you had said GCC only. Please do use the configure test, and __func__ if it's available. Thanks, LER -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749