summaryrefslogtreecommitdiff
path: root/doc/MaintGuide
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-10-06 09:37:17 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-10-06 09:37:17 +0000
commit6f30d8b154fb6bf4697c22d2267eda5035a44d5c (patch)
treef9b56e91173db128d5b748a6cac29fc8a4451e20 /doc/MaintGuide
parent9c6355b7c7ff65161525544027d682c7680dae2e (diff)
Adding one more point to function style.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1860 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc/MaintGuide')
-rw-r--r--doc/MaintGuide/Style.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/MaintGuide/Style.tex b/doc/MaintGuide/Style.tex
index b266e763..1fc0060b 100644
--- a/doc/MaintGuide/Style.tex
+++ b/doc/MaintGuide/Style.tex
@@ -213,5 +213,10 @@ All functions should have a grdoc header.
They should have a single place of return at the end of the function to
make it easy to tidy up and work out what is going on.
+Where possible variables should be declared at the top of the function with
+no initialisation, and then initialised after all variable declarations. Of
+course this can't apply to static variables, 'though these should be kept to
+a minimum so we can make a thread-safe version of Cactus later.
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{cactuspart}