mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-21 05:21:37 -07:00
Remove mps_key_cbs_extend_by and mfsextendself keyword arguments to cbsinit. these were unused and obsoleted by cbsblockpool.
Copied from Perforce Change: 186006 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
a853b9570e
commit
32cd7e343b
3 changed files with 0 additions and 17 deletions
|
|
@ -232,14 +232,11 @@ static void cbsUpdateZonedNode(SplayTree splay, Tree tree)
|
|||
* See <design/cbs/#function.cbs.init>.
|
||||
*/
|
||||
|
||||
ARG_DEFINE_KEY(cbs_extend_by, Size);
|
||||
ARG_DEFINE_KEY(cbs_block_pool, Pool);
|
||||
|
||||
Res CBSInit(CBS cbs, Arena arena, void *owner, Align alignment,
|
||||
Bool fastFind, Bool zoned, ArgList args)
|
||||
{
|
||||
Size extendBy = CBS_EXTEND_BY_DEFAULT;
|
||||
Bool extendSelf = TRUE;
|
||||
ArgStruct arg;
|
||||
Res res;
|
||||
Pool blockPool = NULL;
|
||||
|
|
@ -253,10 +250,6 @@ Res CBSInit(CBS cbs, Arena arena, void *owner, Align alignment,
|
|||
|
||||
if (ArgPick(&arg, args, CBSBlockPool))
|
||||
blockPool = arg.val.pool;
|
||||
if (ArgPick(&arg, args, MPS_KEY_CBS_EXTEND_BY))
|
||||
extendBy = arg.val.size;
|
||||
if (ArgPick(&arg, args, MFSExtendSelf))
|
||||
extendSelf = arg.val.b;
|
||||
|
||||
update = SplayTrivUpdate;
|
||||
if (fastFind)
|
||||
|
|
@ -274,8 +267,6 @@ Res CBSInit(CBS cbs, Arena arena, void *owner, Align alignment,
|
|||
} else {
|
||||
MPS_ARGS_BEGIN(pcArgs) {
|
||||
MPS_ARGS_ADD(pcArgs, MPS_KEY_MFS_UNIT_SIZE, sizeof(CBSBlockStruct));
|
||||
MPS_ARGS_ADD(pcArgs, MPS_KEY_EXTEND_BY, extendBy);
|
||||
MPS_ARGS_ADD(pcArgs, MFSExtendSelf, extendSelf);
|
||||
res = PoolCreate(&cbs->blockPool, arena, PoolClassMFS(), pcArgs);
|
||||
} MPS_ARGS_END(pcArgs);
|
||||
if (res != ResOK)
|
||||
|
|
|
|||
|
|
@ -264,11 +264,6 @@
|
|||
#define BUFFER_RANK_DEFAULT (mps_rank_exact())
|
||||
|
||||
|
||||
/* CBS Configuration -- see <code/cbs.c> */
|
||||
|
||||
#define CBS_EXTEND_BY_DEFAULT ((Size)4096)
|
||||
|
||||
|
||||
/* Format defaults: see <code/format.c> */
|
||||
|
||||
#define FMT_ALIGN_DEFAULT ((Align)MPS_PF_ALIGN)
|
||||
|
|
|
|||
|
|
@ -188,9 +188,6 @@ extern const struct mps_key_s _mps_key_max_size;
|
|||
extern const struct mps_key_s _mps_key_align;
|
||||
#define MPS_KEY_ALIGN (&_mps_key_align)
|
||||
#define MPS_KEY_ALIGN_FIELD align
|
||||
extern const struct mps_key_s _mps_key_cbs_extend_by;
|
||||
#define MPS_KEY_CBS_EXTEND_BY (&_mps_key_cbs_extend_by)
|
||||
#define MPS_KEY_CBS_EXTEND_BY_FIELD size
|
||||
extern const struct mps_key_s _mps_key_interior;
|
||||
#define MPS_KEY_INTERIOR (&_mps_key_interior)
|
||||
#define MPS_KEY_INTERIOR_FIELD b
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue