summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2003-04-30 16:22:54 +0000
committerAlexander Larsson <alexl@src.gnome.org>2003-04-30 16:22:54 +0000
commit76b51b4e24650f0f2d49935056599e0780bd7703 (patch)
treeff9c80d72a71005c0c89e3b2e014673db02de392 /docs
parent952b74e0a472bfff88caeefff0794d0c87a1a759 (diff)
downloadnautilus-76b51b4e24650f0f2d49935056599e0780bd7703.tar.gz
Remove the all-declarations-on-top rule.
2003-04-30 Alexander Larsson <alexl@redhat.com> * docs/style-guide.html: Remove the all-declarations-on-top rule.
Diffstat (limited to 'docs')
-rw-r--r--docs/style-guide.html7
1 files changed, 0 insertions, 7 deletions
diff --git a/docs/style-guide.html b/docs/style-guide.html
index d29c52e07..2e2dfd0af 100644
--- a/docs/style-guide.html
+++ b/docs/style-guide.html
@@ -65,13 +65,6 @@ to be a problem.</p>
is usually to use a while loop. It's true that
"easy to read" is a subjective thing.</p>
-<p><b>We declare local variables at the top of the function.</b> C allows you
-to declare variables at the top of any scope, like the scope in a control
-flow construct like an if statement. But putting the declarations there makes
-it harder to add and delete if statements, since the declarations have to move.
-So we just put them all at the top of the function, usually in the order that
-they are used in the function.</p>
-
<p><b>We do not initialize local variables in their declarations.</b> C allows you
to initialize a local variable when declaring it. But no other code can run before
this, because the other statements in a function must be after all the declarations.