From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: HAVE_FTIME, src/m/vax.h, and src/m in general Date: Sun, 20 May 2012 20:06:07 -0700 Organization: UCLA Computer Science Department Message-ID: <4FB9B11F.8070205@cs.ucla.edu> References: <4FB76178.2030504@cs.ucla.edu> <4FB935C2.7090206@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337569581 32097 80.91.229.3 (21 May 2012 03:06:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 May 2012 03:06:21 +0000 (UTC) Cc: Eli Zaretskii , Emacs Development To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 21 05:06:19 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SWIwt-0003bs-3q for ged-emacs-devel@m.gmane.org; Mon, 21 May 2012 05:06:19 +0200 Original-Received: from localhost ([::1]:34550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWIws-0004Gx-Hr for ged-emacs-devel@m.gmane.org; Sun, 20 May 2012 23:06:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWIwp-0004Go-Q5 for emacs-devel@gnu.org; Sun, 20 May 2012 23:06:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWIwo-0007L6-8e for emacs-devel@gnu.org; Sun, 20 May 2012 23:06:15 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:35403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWIwl-0007KO-Gw; Sun, 20 May 2012 23:06:11 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 1170B39E800B; Sun, 20 May 2012 20:06:08 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7AObGgjiagF7; Sun, 20 May 2012 20:06:07 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 8126639E8008; Sun, 20 May 2012 20:06:07 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150570 Archived-At: On 05/20/2012 06:54 PM, Stefan Monnier wrote: > Why use > > #define BITS_PER_SHORT BITS_OF_SIGNED_MAX (SHRT_MAX) > > rather than > > #define BITS_PER_SHORT (CHAR_BIT * sizeof (short)) Mainly because sizeof does not work in '#if', and these macros must work in '#if'. Or at least some of them must do so, and we might as well have them all work. There's a brief comment to this effect in the description of BITS_OF_SIGNED_MAX.