mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-21 13:31:37 -07:00
Ensure the emergency branch compiles and runs on lii6gc:
No need for <string.h> in mpsi.c (this defines a function "index" on Linux). Need more headers in range.c so that it will compile on its own. Need UNUSED() declarations for some variables in cbstest.c. Copied from Perforce Change: 182113 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
4aaef08a42
commit
a7c70df226
3 changed files with 17 additions and 1 deletions
|
|
@ -225,6 +225,11 @@ static void allocate(CBS cbs, Addr block, BT allocTable,
|
|||
left = AddrOffset(outerBase, base);
|
||||
right = AddrOffset(limit, outerLimit);
|
||||
total = AddrOffset(outerBase, outerLimit);
|
||||
|
||||
/* TODO: check these values */
|
||||
UNUSED(left);
|
||||
UNUSED(right);
|
||||
UNUSED(total);
|
||||
}
|
||||
|
||||
res = CBSDelete(&oldBase, &oldLimit, cbs, base, limit);
|
||||
|
|
@ -285,6 +290,11 @@ static void deallocate(CBS cbs, Addr block, BT allocTable,
|
|||
left = AddrOffset(outerBase, base);
|
||||
right = AddrOffset(limit, outerLimit);
|
||||
total = AddrOffset(outerBase, outerLimit);
|
||||
|
||||
/* TODO: check these values */
|
||||
UNUSED(left);
|
||||
UNUSED(right);
|
||||
UNUSED(total);
|
||||
}
|
||||
|
||||
res = CBSInsert(&freeBase, &freeLimit, cbs, base, limit);
|
||||
|
|
@ -313,6 +323,7 @@ static void find(CBS cbs, void *block, BT alloc, Size size, Bool high,
|
|||
Addr oldBase, oldLimit, origBase, origLimit;
|
||||
Size oldSize, newSize;
|
||||
|
||||
origBase = origLimit = NULL;
|
||||
expected = (high ? BTFindLongResRangeHigh : BTFindLongResRange)
|
||||
(&expectedBase, &expectedLimit, alloc,
|
||||
(Index)0, (Index)ArraySize, (Count)size);
|
||||
|
|
@ -342,6 +353,10 @@ static void find(CBS cbs, void *block, BT alloc, Size size, Bool high,
|
|||
if (findDelete != CBSFindDeleteNONE) {
|
||||
newSize = AddrOffset(remainderBase, remainderLimit);
|
||||
}
|
||||
|
||||
/* TODO: check these values */
|
||||
UNUSED(oldSize);
|
||||
UNUSED(newSize);
|
||||
}
|
||||
|
||||
found = (high ? CBSFindLast : CBSFindFirst)
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@
|
|||
#include "mpsavm.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
SRCID(mpsi, "$Id$");
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
* .design: <design/range/>
|
||||
*/
|
||||
|
||||
#include "check.h"
|
||||
#include "mpm.h"
|
||||
#include "range.h"
|
||||
|
||||
SRCID(range, "$Id$");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue