emacs-devel
[Top][All Lists]
Advanced

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

Re: MPS: Forwording symbols


From: Helmut Eller
Subject: Re: MPS: Forwording symbols
Date: Sun, 23 Jun 2024 17:59:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

On Sat, Jun 22 2024, Gerd Möllmann wrote:

> I was thinking of using 1 struct instead of 4, like so
>
>   enum Lisp_Fwd_Pred
>   {
>     /* Something with values for the Lisp_Object predicate ... */
>     ...  
>   };
>
>   struct Lisp_Fwd
>   {
>     enum Lisp_Fwd_Type : 8;
>     enum Lisp_Fwd_Predicate predicate : 8;
>     union
>     {
>       intmax_t *intvar;
>       bool *boolvar;
>       Lisp_Object *objvar;
>       int offset;
>     } u;
>   };
>
> Then removing the Lisp_Fwd_Bool etc. structures that currently exist and
> replace this
>
>   typedef struct { void const *fwdptr; } lispfwd;
>
> which is just a void * with ornaments, with const struct Lisp_Fwd *.

These patches do this; only that the predicate is still a Lisp_Object.

Attachment: 0001-Introduce-a-struct-Lisp_Fwd.patch
Description: Text Data

Attachment: 0002-Remove-struct-Lisp_Intfwd.patch
Description: Text Data

Attachment: 0003-Remove-struct-Lisp_Boolfwd.patch
Description: Text Data

Attachment: 0004-Remove-struct-Lisp_Objfwd.patch
Description: Text Data

Attachment: 0005-Remove-struct-Lisp_Kboard_Objfwd.patch
Description: Text Data

Attachment: 0006-Remove-struct-Lisp_Buffer_Objfwd.patch
Description: Text Data


reply via email to

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