[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EMACS_INT cleanup
From: |
Lars Magne Ingebrigtsen |
Subject: |
Re: EMACS_INT cleanup |
Date: |
Thu, 23 Sep 2010 22:52:11 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
> If ptrdiff_t works, it is a better solution, because SPECPDL_INDEX is
> defined like this:
>
> extern struct specbinding *specpdl;
> extern struct specbinding *specpdl_ptr;
> ...
> #define SPECPDL_INDEX() (specpdl_ptr - specpdl)
>
> So it returns a difference between two pointers, which is exactly what
> ptrdiff_t is for (as its name hints).
>
> Casting it to an int will DTWT on a 64-bit host.
Makes sense.
I'll try ptrdiff_t and see what happens.
Calls like
int count = SPECPDL_INDEX ();
should probably be changed then, too.
--
(domestic pets only, the antidote for overdose, milk.)
address@hidden * Lars Magne Ingebrigtsen
- EMACS_INT cleanup, Lars Magne Ingebrigtsen, 2010/09/23
- Re: EMACS_INT cleanup, Eli Zaretskii, 2010/09/23
- Re: EMACS_INT cleanup, Lars Magne Ingebrigtsen, 2010/09/23
- Re: EMACS_INT cleanup, Lars Magne Ingebrigtsen, 2010/09/23
- Re: EMACS_INT cleanup, Lars Magne Ingebrigtsen, 2010/09/23
- Re: EMACS_INT cleanup, Eli Zaretskii, 2010/09/23
- Re: EMACS_INT cleanup, Lars Magne Ingebrigtsen, 2010/09/23
- Re: EMACS_INT cleanup, Eli Zaretskii, 2010/09/23
- Re: EMACS_INT cleanup, Lars Magne Ingebrigtsen, 2010/09/23
- Re: EMACS_INT cleanup, Eli Zaretskii, 2010/09/23
- Re: EMACS_INT cleanup,
Lars Magne Ingebrigtsen <=
- Re: EMACS_INT cleanup, Lars Magne Ingebrigtsen, 2010/09/23
- Re: EMACS_INT cleanup, Eli Zaretskii, 2010/09/23
- Re: EMACS_INT cleanup, Eli Zaretskii, 2010/09/23
- Re: EMACS_INT cleanup, Lars Magne Ingebrigtsen, 2010/09/23
- Re: EMACS_INT cleanup, Lars Magne Ingebrigtsen, 2010/09/23
- Re: EMACS_INT cleanup, Juanma Barranquero, 2010/09/23
- Re: EMACS_INT cleanup, Lars Magne Ingebrigtsen, 2010/09/23
- Re: EMACS_INT cleanup, Stefan Monnier, 2010/09/23
- Re: EMACS_INT cleanup, Eli Zaretskii, 2010/09/24
- Re: EMACS_INT cleanup, Miles Bader, 2010/09/24