From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Optimizing memory footprint of bidi code Date: Mon, 07 Jun 2010 17:46:11 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275927778 1040 80.91.229.12 (7 Jun 2010 16:22:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Jun 2010 16:22:58 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 07 18:22:56 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OLf6F-0008Bt-Le for ged-emacs-devel@m.gmane.org; Mon, 07 Jun 2010 18:22:55 +0200 Original-Received: from localhost ([127.0.0.1]:42099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLf6E-00032m-PJ for ged-emacs-devel@m.gmane.org; Mon, 07 Jun 2010 12:22:54 -0400 Original-Received: from [140.186.70.92] (port=59469 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLeWy-0000AD-Jb for emacs-devel@gnu.org; Mon, 07 Jun 2010 11:46:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLeWx-0008S2-5a for emacs-devel@gnu.org; Mon, 07 Jun 2010 11:46:28 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:39975) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLeWp-0008OY-W1; Mon, 07 Jun 2010 11:46:20 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 1D8F41C00331; Mon, 7 Jun 2010 17:46:11 +0200 (CEST) Original-Received: from hase.home (ppp-88-217-123-181.dynamic.mnet-online.de [88.217.123.181]) by mail.mnet-online.de (Postfix) with ESMTP id A3D821C00118; Mon, 7 Jun 2010 17:46:11 +0200 (CEST) X-Yow: Hello... IRON CURTAIN? Send over a SAUSAGE PIZZA! World War III? No thanks! In-Reply-To: (Tom Tromey's message of "Mon, 07 Jun 2010 09:14:36 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125593 Archived-At: Tom Tromey writes: > In C an enum is always an int. This is not true. Only the enum constants are of always of type int. The underlying type of an enum can be any type that is wide enough to include all defined values. > In a struct the compiler will not automatically shrink this to a > bitfield. The width is the same as outside of structs. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."