aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Brooksby2012-09-11 15:07:17 +0100
committerRichard Brooksby2012-09-11 15:07:17 +0100
commit6a0b9345257df8daa0cd472bb91acfeff87396ec (patch)
tree7d5dfd1ea4c724d0bc1ef94507fd1a4eadba94d3
parent68a3760ce9218c035db2327e625fab6067a30096 (diff)
downloademacs-6a0b9345257df8daa0cd472bb91acfeff87396ec.tar.gz
emacs-6a0b9345257df8daa0cd472bb91acfeff87396ec.zip
Making %%mps markers consistent and adding one to the symbol table.
Copied from Perforce Change: 179421 ServerID: perforce.ravenbrook.com
-rw-r--r--mps/example/scheme/scheme.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/mps/example/scheme/scheme.c b/mps/example/scheme/scheme.c
index f7c6b58333b..7a3fa74dea5 100644
--- a/mps/example/scheme/scheme.c
+++ b/mps/example/scheme/scheme.c
@@ -249,7 +249,7 @@ typedef union obj_u {
249static size_t total; 249static size_t total;
250 250
251 251
252/* symtab -- symbol table 252/* symtab -- symbol table %%MPS
253 * 253 *
254 * The symbol table is a hash-table containing objects of TYPE_SYMBOL. 254 * The symbol table is a hash-table containing objects of TYPE_SYMBOL.
255 * When a string is "interned" it is looked up in the table, and added 255 * When a string is "interned" it is looked up in the table, and added
@@ -317,9 +317,9 @@ static jmp_buf *error_handler;
317static char error_message[MSGMAX+1]; 317static char error_message[MSGMAX+1];
318 318
319 319
320/* MPS globals 320/* MPS globals %%MPS
321 * 321 *
322 * %%MPS: These are global variables holding MPS values for use by the 322 * These are global variables holding MPS values for use by the
323 * interpreter. In a more sophisticated integration some of these might 323 * interpreter. In a more sophisticated integration some of these might
324 * be thread local. See `main` for where these are set up. 324 * be thread local. See `main` for where these are set up.
325 * 325 *
@@ -369,12 +369,12 @@ static void error(char *format, ...)
369} 369}
370 370
371 371
372/* make_* -- object constructors 372/* make_* -- object constructors %%MPS
373 * 373 *
374 * Each object type has a function here that allocates an instance of 374 * Each object type has a function here that allocates an instance of
375 * that type. 375 * that type.
376 * 376 *
377 * %%MPS: These functions illustrate the two-phase MPS Allocation Point 377 * These functions illustrate the two-phase MPS Allocation Point
378 * Protocol with `reserve` and `commmit`. This protocol allows very fast 378 * Protocol with `reserve` and `commmit`. This protocol allows very fast
379 * in-line allocation without locking, but there is a very tiny chance that 379 * in-line allocation without locking, but there is a very tiny chance that
380 * the object must be re-initialized. In nearly all cases, however, it's 380 * the object must be re-initialized. In nearly all cases, however, it's
@@ -2347,9 +2347,9 @@ static struct {char *name; entry_t entry;} funtab[] = {
2347}; 2347};
2348 2348
2349 2349
2350/* MPS Format 2350/* MPS Format %%MPS
2351 * 2351 *
2352 * %%MPS: These functions satisfy the MPS Format Protocol for format 2352 * These functions satisfy the MPS Format Protocol for format
2353 * variant "A". 2353 * variant "A".
2354 * 2354 *
2355 * In general, MPS format methods are performance critical, as they're used 2355 * In general, MPS format methods are performance critical, as they're used
@@ -2367,9 +2367,9 @@ static struct {char *name; entry_t entry;} funtab[] = {
2367 */ 2367 */
2368 2368
2369 2369
2370/* obj_scan -- object format scanner 2370/* obj_scan -- object format scanner %%MPS
2371 * 2371 *
2372 * %%MPS: The job of the scanner is to identify references in a contiguous 2372 * The job of the scanner is to identify references in a contiguous
2373 * group of objects in memory, by passing them to the "fix" operation. 2373 * group of objects in memory, by passing them to the "fix" operation.
2374 * This code is highly performance critical. 2374 * This code is highly performance critical.
2375 */ 2375 */