mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-31 11:10:51 -07:00
Avoid type puns.
Copied from Perforce Change: 185151 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
10c511ff58
commit
e5bc35b28f
3 changed files with 3 additions and 3 deletions
|
|
@ -558,7 +558,7 @@ extern int main(int argc, char *argv[])
|
|||
BT allocTable;
|
||||
FreelistStruct flStruct;
|
||||
CBSStruct cbsStruct;
|
||||
Land land = (Land)&cbsStruct;
|
||||
Land land = &cbsStruct.landStruct;
|
||||
Align align;
|
||||
|
||||
testlib_init(argc, argv);
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ static ABQ MVTABQ(MVT mvt)
|
|||
|
||||
static Land MVTCBS(MVT mvt)
|
||||
{
|
||||
return (Land)(&mvt->cbsStruct);
|
||||
return &mvt->cbsStruct.landStruct;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ typedef struct MVFFStruct { /* MVFF pool outer structure */
|
|||
|
||||
#define Pool2MVFF(pool) PARENT(MVFFStruct, poolStruct, pool)
|
||||
#define MVFF2Pool(mvff) (&((mvff)->poolStruct))
|
||||
#define CBSOfMVFF(mvff) ((Land)&((mvff)->cbsStruct))
|
||||
#define CBSOfMVFF(mvff) (&((mvff)->cbsStruct.landStruct))
|
||||
#define MVFFOfCBS(cbs) PARENT(MVFFStruct, cbsStruct, cbs)
|
||||
#define FreelistOfMVFF(mvff) (&((mvff)->flStruct))
|
||||
#define MVFFOfFreelist(fl) PARENT(MVFFStruct, flStruct, fl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue