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: Type-error in C code Date: Fri, 12 Nov 2010 19:45:57 +0100 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 1289662990 11715 80.91.229.12 (13 Nov 2010 15:43:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Nov 2010 15:43:10 +0000 (UTC) Cc: Julien Danjou , Jan =?utf-8?Q?Dj=C3=A4rv?= , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 13 16:43:06 2010 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 1PHIFt-0005kx-GO for ged-emacs-devel@m.gmane.org; Sat, 13 Nov 2010 16:43:05 +0100 Original-Received: from localhost ([127.0.0.1]:47361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHIFt-0004Zs-18 for ged-emacs-devel@m.gmane.org; Sat, 13 Nov 2010 10:43:05 -0500 Original-Received: from [140.186.70.92] (port=55260 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHIFm-0004Wp-QJ for emacs-devel@gnu.org; Sat, 13 Nov 2010 10:43:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHIFi-0003LA-Ee for emacs-devel@gnu.org; Sat, 13 Nov 2010 10:42:58 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:49443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHIFi-0003Kt-9n for emacs-devel@gnu.org; Sat, 13 Nov 2010 10:42:54 -0500 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 6F1831C004B6; Fri, 12 Nov 2010 19:46:06 +0100 (CET) Original-Received: from igel.home (ppp-88-217-119-80.dynamic.mnet-online.de [88.217.119.80]) by mail.mnet-online.de (Postfix) with ESMTP id 1F02B1C003A5; Fri, 12 Nov 2010 19:45:58 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 501) id AA4DECA2A0; Fri, 12 Nov 2010 19:45:57 +0100 (CET) X-Yow: Gibble, Gobble, we ACCEPT YOU --- In-Reply-To: (Stefan Monnier's message of "Fri, 12 Nov 2010 09:02:10 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.90 (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:132599 Archived-At: Stefan Monnier writes: > The error is to put an "Atom" into a cons cell: those can only hold > Lisp_Objects. The usual compilation flags won't catch the error because > both types are actually some kind of integer, but if you > compile --enable-use-lisp-union-type, the C compiler will > dutyfully burp. I think we should remove the union Lisp_Object, and instead define a struct Lisp_Object { EMACS_INT i; } (reusing the macros of the non-union type), and make that the default Lisp_Object at least during development. 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."