aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/buffer.c
diff options
context:
space:
mode:
authorRichard Brooksby2002-06-07 17:34:59 +0100
committerRichard Brooksby2002-06-07 17:34:59 +0100
commit78ef580722fd097c746d582e899917aab28f2a9a (patch)
tree07c829176804054f254436063d3c660cc351335c /mps/code/buffer.c
parent97075f705350901f5ff46387f658ab459a4cd73f (diff)
downloademacs-78ef580722fd097c746d582e899917aab28f2a9a.tar.gz
emacs-78ef580722fd097c746d582e899917aab28f2a9a.zip
Eliminating "impl" type tags and replacing them with uri-style file references.
Copied from Perforce Change: 29900 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/buffer.c')
-rw-r--r--mps/code/buffer.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/mps/code/buffer.c b/mps/code/buffer.c
index 831efac5c06..6e6616fc5b8 100644
--- a/mps/code/buffer.c
+++ b/mps/code/buffer.c
@@ -1,11 +1,11 @@
1/* impl.c.buffer: ALLOCATION BUFFER IMPLEMENTATION 1/* buffer.c: ALLOCATION BUFFER IMPLEMENTATION
2 * 2 *
3 * $Id$ 3 * $Id$
4 * Copyright (c) 2001 Ravenbrook Limited. See end of file for license. 4 * Copyright (c) 2001 Ravenbrook Limited. See end of file for license.
5 * 5 *
6 * .purpose: This is (part of) the implementation of allocation buffers. 6 * .purpose: This is (part of) the implementation of allocation buffers.
7 * Several macros which also form part of the implementation are in 7 * Several macros which also form part of the implementation are in
8 * impl.h.mps. Several macros forming part of impl.h.mps should be 8 * <code/mps.h>. Several macros forming part of <code/mps.h> should be
9 * consistent with the macros and functions in this module. 9 * consistent with the macros and functions in this module.
10 * 10 *
11 * DESIGN 11 * DESIGN
@@ -20,7 +20,7 @@
20 * TRANSGRESSIONS 20 * TRANSGRESSIONS
21 * 21 *
22 * .trans.mod: There are several instances where pool structures are 22 * .trans.mod: There are several instances where pool structures are
23 * directly accessed by this module because impl.c.pool does not provide 23 * directly accessed by this module because <code/pool.c> does not provide
24 * an adequate (or adequately documented) interface. They bear this 24 * an adequate (or adequately documented) interface. They bear this
25 * tag. */ 25 * tag. */
26 26
@@ -142,7 +142,7 @@ Bool BufferCheck(Buffer buffer)
142 142
143/* BufferDescribe -- write out description of buffer 143/* BufferDescribe -- write out description of buffer
144 * 144 *
145 * See impl.h.mpmst for structure definitions. */ 145 * See <code/mpmst.h> for structure definitions. */
146 146
147Res BufferDescribe(Buffer buffer, mps_lib_FILE *stream) 147Res BufferDescribe(Buffer buffer, mps_lib_FILE *stream)
148{ 148{
@@ -198,7 +198,7 @@ static Res BufferInitV(Buffer buffer, BufferClass class,
198 AVER((pool->class->attr & AttrBUF)); /* .trans.mod */ 198 AVER((pool->class->attr & AttrBUF)); /* .trans.mod */
199 199
200 arena = PoolArena(pool); 200 arena = PoolArena(pool);
201 /* Initialize the buffer. See impl.h.mpmst for a definition of */ 201 /* Initialize the buffer. See <code/mpmst.h> for a definition of */
202 /* the structure. sig and serial comes later .init.sig-serial */ 202 /* the structure. sig and serial comes later .init.sig-serial */
203 buffer->arena = arena; 203 buffer->arena = arena;
204 buffer->class = class; 204 buffer->class = class;
@@ -597,7 +597,7 @@ Res BufferFramePop(Buffer buffer, AllocFrame frame)
597 597
598/* BufferReserve -- reserve memory from an allocation buffer 598/* BufferReserve -- reserve memory from an allocation buffer
599 * 599 *
600 * .reserve: Keep in sync with impl.h.mps.reserve. */ 600 * .reserve: Keep in sync with <code/mps.h#reserve>. */
601 601
602Res BufferReserve(Addr *pReturn, Buffer buffer, Size size, 602Res BufferReserve(Addr *pReturn, Buffer buffer, Size size,
603 Bool withReservoirPermit) 603 Bool withReservoirPermit)
@@ -755,7 +755,7 @@ Res BufferFill(Addr *pReturn, Buffer buffer, Size size,
755 755
756/* BufferCommit -- commit memory previously reserved 756/* BufferCommit -- commit memory previously reserved
757 * 757 *
758 * .commit: Keep in sync with impl.h.mps.commit. */ 758 * .commit: Keep in sync with <code/mps.h#commit>. */
759 759
760Bool BufferCommit(Buffer buffer, Addr p, Size size) 760Bool BufferCommit(Buffer buffer, Addr p, Size size)
761{ 761{
@@ -1004,7 +1004,7 @@ static Bool AllocPatternCheck(AllocPattern pattern)
1004{ 1004{
1005 CHECKL(pattern == &AllocPatternRampCollectAllStruct 1005 CHECKL(pattern == &AllocPatternRampCollectAllStruct
1006 || pattern == &AllocPatternRampStruct); 1006 || pattern == &AllocPatternRampStruct);
1007 UNUSED(pattern); /* impl.c.mpm.check.unused */ 1007 UNUSED(pattern); /* <code/mpm.c#check.unused> */
1008 return TRUE; 1008 return TRUE;
1009} 1009}
1010 1010
@@ -1487,7 +1487,7 @@ DEFINE_CLASS(SegBufClass, class)
1487static Res rankBufInit (Buffer buffer, Pool pool, va_list args) 1487static Res rankBufInit (Buffer buffer, Pool pool, va_list args)
1488{ 1488{
1489 /* Assumes pun compatibility between Rank and mps_rank_t */ 1489 /* Assumes pun compatibility between Rank and mps_rank_t */
1490 /* Which is checked by mpsi_check in impl.c.mpsi */ 1490 /* Which is checked by mpsi_check in <code/mpsi.c> */
1491 Rank rank = va_arg(args, Rank); 1491 Rank rank = va_arg(args, Rank);
1492 BufferClass super; 1492 BufferClass super;
1493 Res res; 1493 Res res;