emacs-devel
[Top][All Lists]
Advanced

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

Re: bignum branch


From: Eli Zaretskii
Subject: Re: bignum branch
Date: Sat, 04 Aug 2018 09:07:42 +0300

> From: Andy Moreton <address@hidden>
> Date: Fri, 03 Aug 2018 20:16:05 +0100
> 
> Yes. Also perhaps change XBIGNUM to:
> 
>     INLINE struct Lisp_Bignum *
>     XBIGNUM (Lisp_Object a)
>     {
>       eassert (BIGNUMP (a));
>       return XUNTAG (a, Lisp_Misc, struct Lisp_Bignum)->value;
>     }
> 
> That allows "XBIGNUM(value)->value" to be replaced with "XBIGNUM(value)"
> in all callers.

That would go against the convention with all the other Xfoo macros.

However, I see your point, and so perhaps an additional macro,
XINTEGER, could call either XINT or XBIGNUM()->value, depending on the
argument type?



reply via email to

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