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);