[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Type-error in C code

From: Stefan Monnier
Subject: Re: Type-error in C code
Date: Fri, 12 Nov 2010 16:00:15 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> 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.

Not sure what we be the benefit.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]