1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Making all static next-method calls look similar.

Copied from Perforce
 Change: 190934
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Brooksby 2016-04-11 16:35:43 +01:00
parent aa4036fbfd
commit bfa333b5c0
10 changed files with 25 additions and 60 deletions

View file

@ -221,14 +221,12 @@ static Res cbsInitComm(Land land, LandClass class,
Size blockStructSize)
{
CBS cbs;
LandClass super;
ArgStruct arg;
Res res;
Pool blockPool = NULL;
AVER(land != NULL); /* FIXME: express intention */
super = SUPERCLASS(Land, CBS);
res = (*super->init)(land, arena, alignment, args);
AVER(land != NULL);
res = SUPERCLASS(Land, CBS)->init(land, arena, alignment, args);
if (res != ResOK)
return res;
@ -1103,7 +1101,6 @@ static Res cbsDescribe(Land land, mps_lib_FILE *stream, Count depth)
if (stream == NULL)
return ResPARAM;
/* FIXME: Should use the class from the land itself. */
res = SUPERCLASS(Land, CBS)->describe(land, stream, depth);
if (res != ResOK)
return res;
@ -1118,7 +1115,8 @@ static Res cbsDescribe(Land land, mps_lib_FILE *stream, Count depth)
METER_WRITE(cbs->treeSearch, stream, depth + 2);
/* FIXME: Should be done by subclass specialization. */
/* This could be done by specialised methods in subclasses, but it
doesn't really come out any neater. */
if (IsA(CBSZoned, land))
describe = cbsZonedSplayNodeDescribe;
else if (IsA(CBSFast, land))