|
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.
0001-Introduce-a-struct-Lisp_Fwd.patch
Description: Text Data
0002-Remove-struct-Lisp_Intfwd.patch
Description: Text Data
0003-Remove-struct-Lisp_Boolfwd.patch
Description: Text Data
0004-Remove-struct-Lisp_Objfwd.patch
Description: Text Data
0005-Remove-struct-Lisp_Kboard_Objfwd.patch
Description: Text Data
0006-Remove-struct-Lisp_Buffer_Objfwd.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |