[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lisp object that refers to a C struct
From: |
Paul Eggert |
Subject: |
Re: Lisp object that refers to a C struct |
Date: |
Thu, 18 Oct 2012 00:20:11 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 |
On 10/17/2012 09:50 PM, Eli Zaretskii wrote:
>> Won't this have problems on platforms where
>> > (EMACS_INT) pwatch < MOST_NEGATIVE_FIXNUM,
>> > or where MOST_POSITIVE_FIXNUM < (EMACS_INT) pwatch?
> Given what XLI does, I don't see how this could happen
To be honest I haven't followed all the back-and-forth on this,
but in general it's not safe to convert a pointer to
an Emacs fixnum, as this can lose information: the payload
of an Emacs fixnum is typically narrower than a pointer.
- Re: Lisp object that refers to a C struct, (continued)
- Re: Lisp object that refers to a C struct, Stefan Monnier, 2012/10/17
- Re: Lisp object that refers to a C struct, Eli Zaretskii, 2012/10/17
- Re: Lisp object that refers to a C struct, Stefan Monnier, 2012/10/17
- Re: Lisp object that refers to a C struct, Eli Zaretskii, 2012/10/17
- Re: Lisp object that refers to a C struct, Paul Eggert, 2012/10/17
- Re: Lisp object that refers to a C struct, Stefan Monnier, 2012/10/17
- Re: Lisp object that refers to a C struct, Stephen J. Turnbull, 2012/10/17
- Re: Lisp object that refers to a C struct, Eli Zaretskii, 2012/10/18
- Re: Lisp object that refers to a C struct,
Paul Eggert <=
- Re: Lisp object that refers to a C struct, Eli Zaretskii, 2012/10/18
- Re: Lisp object that refers to a C struct, Paul Eggert, 2012/10/18
- Re: Lisp object that refers to a C struct, Eli Zaretskii, 2012/10/18
- Re: Lisp object that refers to a C struct, Juanma Barranquero, 2012/10/18
- Re: Lisp object that refers to a C struct, Eli Zaretskii, 2012/10/18
- Re: Lisp object that refers to a C struct, Stefan Monnier, 2012/10/18
- Re: Lisp object that refers to a C struct, Eli Zaretskii, 2012/10/18
- Re: Lisp object that refers to a C struct, Stefan Monnier, 2012/10/18
- Re: Lisp object that refers to a C struct, Eli Zaretskii, 2012/10/19
- Re: Lisp object that refers to a C struct, Stefan Monnier, 2012/10/19