[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bookkeeping to prepare for a 64-bit EMACS_INT on 32-bit hosts
From: |
Stefan Monnier |
Subject: |
Re: bookkeeping to prepare for a 64-bit EMACS_INT on 32-bit hosts |
Date: |
Mon, 02 May 2011 16:49:44 -0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> static inline EMACS_INTPTR to_EMACS_INTPTR (EMACS_INTPTR a) { return a; }
[...]
> (which misses some silly mistakes) we can write this:
> gpointer gi = (gpointer) to_EMACS_INTPTR (i);
While it solves this particular problem, you'd have to write one for
each and every type you may want to use, which is hideous.
So no, I'd rather not go there.
Stefan