From 495b93f24efabd07c263e81f82c3e4f2bb8fcbe8 Mon Sep 17 00:00:00 2001 From: Richard Kistruck Date: Tue, 12 Jun 2007 12:01:51 +0100 Subject: [PATCH] Mps design/cstyle: fix html: close tag, escape amp + lt. Copied from Perforce Change: 162549 ServerID: perforce.ravenbrook.com --- mps/design/cstyle/index.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mps/design/cstyle/index.html b/mps/design/cstyle/index.html index 65a3b389356..3ebf20d9502 100644 --- a/mps/design/cstyle/index.html +++ b/mps/design/cstyle/index.html @@ -90,6 +90,7 @@

White Space

.space.control.not: No space between the keywords if, for, while and the following paren. +

Sections and Paragraphs

@@ -168,7 +169,7 @@

Indentation

   if(res != ResOK) {
-    SegFinish(&span->segStruct);
+    SegFinish(&span->segStruct);
     PoolFreeP(MV->spanPool, span, sizeof(SpanStruct));
     return res;
   }
@@ -201,7 +202,7 @@ 

Indentation

} else if(j+step == block->limit) { putc(']', stream); pop_bracket(); - } else if(j > block->base && j < block->limit) + } else if(j > block->base && j < block->limit) putc('=', stream); } else { putc('.', stream); @@ -253,7 +254,7 @@

Indentation

-  PoolClassInit(&PoolClassMVStruct,
+  PoolClassInit(&PoolClassMVStruct,
                 "MV", init, finish, allocP, freeP,
                 NULL, NULL, describe, isValid);
 
@@ -266,17 +267,17 @@

Indentation

   CHECKL(AddrAdd((Addr)chunk->pageTableMapped,
                  BTSize(chunk->pageTablePages))
-         <= AddrAdd(chunk->base, chunk->ullageSize));
+         <= AddrAdd(chunk->base, chunk->ullageSize));
 

-This is particularly useful in long conditional expressions that use && +This is particularly useful in long conditional expressions that use && and ||. For example:

   } while(trace->state != TraceFINISHED
-          && (trace->emergency || traceWorkClock(trace) < pollEnd));
+          && (trace->emergency || traceWorkClock(trace) < pollEnd));
 
@@ -324,7 +325,7 @@

Positioning of Braces

-  while(node != DequeSentinel(&pool->segDeque))
+  while(node != DequeSentinel(&pool->segDeque))
   {
     DequeNode next = DequeNodeNext(node);
     Seg seg = DequeNodeElement(Seg, poolDeque, node);