From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26038 invoked by alias); 8 Jan 2003 00:20:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25811 invoked from network); 8 Jan 2003 00:19:38 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by 209.249.29.67 with SMTP; 8 Jan 2003 00:19:38 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 283583D06; Tue, 7 Jan 2003 19:19:29 -0500 (EST) Message-ID: <3E1B6E90.2010809@redhat.com> Date: Wed, 08 Jan 2003 00:20:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.1) Gecko/20021211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Elizabeth Chastain Cc: drow@mvista.com, gdb-patches@sources.redhat.com Subject: Re: RFC: Slay COERCE_FLOAT_TO_DOUBLE References: <200301071800.h07I0H027120@duracef.shout.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00305.txt.bz2 > Daniel's patch keeps the current data structure, which uses 1 bit > to indicate whether the function is prototyped or not. > > I prefer to use 2 bits: TYPE_PROTO_KNOWN and TYPE_PROTO_YES. > That allows for three states: > > known=0 gdb does not know if function is prototyped > known=1, yes=0 function is definitely not prototyped > known=1, yes=1 function is definitely prototyped > > I have written such a 2-bit patch. To be pedantic :-) That's an enum with three states: prototype unknown prototyped unprototyped It can be packed into two bits. enjoy, Andrew