From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29472 invoked by alias); 20 Apr 2010 15:45:40 -0000 Received: (qmail 29459 invoked by uid 22791); 20 Apr 2010 15:45:39 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Apr 2010 15:45:31 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3KFijfw022202 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 20 Apr 2010 11:44:45 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3KFieLc031854; Tue, 20 Apr 2010 11:44:40 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o3KFid0e011477; Tue, 20 Apr 2010 11:44:39 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 463EA37979C; Tue, 20 Apr 2010 09:44:39 -0600 (MDT) From: Tom Tromey To: "Pierre Muller" Cc: "'Joel Brobecker'" , "'Pedro Alves'" , Subject: Re: [RFC] Use macro for void typecast necessary for ncurses library. References: <003001cadae7$2e639860$8b2ac920$@muller@ics-cnrs.unistra.fr> <20100414155944.GK19194@adacore.com> <000001cadbef$a21bad70$e6530850$@muller@ics-cnrs.unistra.fr> <201004141738.22662.pedro@codesourcery.com> <000601cadc72$e751a330$b5f4e990$@muller@ics-cnrs.unistra.fr> <20100415155258.GN19194@adacore.com> <9120.2086922296$1271371097@news.gmane.org> Reply-To: tromey@redhat.com Date: Tue, 20 Apr 2010 15:45:00 -0000 In-Reply-To: <9120.2086922296$1271371097@news.gmane.org> (Pierre Muller's message of "Fri, 16 Apr 2010 00:37:18 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00612.txt.bz2 >>>>> "Pierre" == Pierre Muller writes: Pierre> I am unsure about: Pierre> - the name we should give to the macro. Pierre> - should the macro have a parameter? Pierre> - should I mention that it would also apply to uses of wattrset? If you are going to use a macro, then I would say it ought to have a parameter. I think the CURSES_CAST_TO_VOID thing is less readable than a plain (void) cast. Tom