$c-case - C-mode; case indentation
$c-switch - C-mode; switch indentation
$c-case integer; Default is -4
-n <= integer <= n
$c-switch integer; Default is 0
-n <= integer <= n
$c-case and $c-switch are part of the cmode(2m) environment for C programmers.
$c-switch sets the offset of a "case" entry statement from the opening brace left margin position. The default value is zero. e.g.
switch(xxxxxxxxx) { case 1: xxxxxxxxxx xxxxxxxxxx case 2: xxxxxxxxxx }
Setting the value to 4, increases the leading space on the "case" statement, e.g.
switch(xxxxxxxxx) { case 1: xxxxxxxxxx xxxxxxxxxx case 2: xxxxxxxxxx }
$c-case sets the offset of the lines following a "case" statement, from the current indent. For example, using the default settings, if the current indent was 20 then a line starting with a "case" would be indented to 16, i.e.
xxxxxxxxxx case xxxxxxxxxx xxxxxxxxxx
This is used inside "switch" statements, the default setting give the following lay-out:-
switch(xxxxxxxxxx) { case 1: xxxxxxxxxx xxxxxxxxxx case 2:
This works in conjunction with the $c-statement(5), a change to $c-statement will change the position of '{'s.
(c) Copyright JASSPA 1999
Last Modified: 1999/09/24
Generated On: 1999/12/01