From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3) with ESMTP id IAA28437 for ; Tue, 28 May 1996 08:47:58 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id SAA03199; Mon, 27 May 1996 18:41:13 -0400 (EDT) Resent-Date: Mon, 27 May 1996 18:41:13 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199605272241.AAA02676@bolyai.cs.elte.hu> Subject: Re: (NULL == 0) ? To: A.Main@dcs.warwick.ac.uk (Zefram) Date: Tue, 28 May 1996 00:41:30 +0200 (MET DST) Cc: A.Main@dcs.warwick.ac.uk, zsh-workers@math.gatech.edu In-Reply-To: <25534.199605272211@stone.dcs.warwick.ac.uk> from Zefram at "May 27, 96 11:11:48 pm" Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"yZw1M1.0.vn.8-Ygn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1201 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > >It is used to determine the size of buffers to store the string > >representation of an integer. Just grep for 'SIZEOF_LONG \* 8'. > > If we change the `8' to `CHAR_BIT' (which will need to be determined at > configuration time if there isn't a limits.h), it would be more > portable. But we are assuming 8-bit bytes, as well as ASCII, in a lot > of character handling code. Bart wrote that ANSI C guarantees ASCII in the cases we need so that should not cause any problems. I do not see where is is assumed that a char has 8 bits othar than buffer sizes. We do assume that char has at least 8 bits but that's OK. > >In hashtable.h it is assumed that sizeof(void*) >= sizeof(long). > > We should have a union there, as we do elsewhere. long and void * are > sufficient, but it might be neater to have some other pointer types too > (it would reduce casting, and would not decrease efficiency). Here struct iparam is used for initialisation. It is used instead of struct param since initialisation of a union might cause problems. Zoltan