From 4b8b02e8112c13ba8bdb5f64d75f684500590dfe Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Fri, 18 Apr 2003 11:02:48 +0000 Subject: [PATCH] document labels --- HACKING | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/HACKING b/HACKING index c4323725f..04d884c09 100644 --- a/HACKING +++ b/HACKING @@ -136,6 +136,26 @@ Formating * If a line takes more than 80 columns, split it or rethink it. + * Labels or case statements are left-indented by two spaces, + without space before the `:'. + + if (something) + { + top: + bar = foo(); + switch (something_else) + { + case first_case: + f(); + break; + case second_case: + g(); + break; + default: + goto top; + } + } + Naming ======