aboutsummaryrefslogtreecommitdiff
path: root/STYLE
diff options
context:
space:
mode:
authorantirez <antirez>2005-03-31 12:20:21 +0000
committerantirez <antirez>2005-03-31 12:20:21 +0000
commit6b53d12f84d9a2f2efa810038ce4a7c2146de928 (patch)
tree48d07e7d070b9c8f598ac932b98950ca3a65f088 /STYLE
parent15dc45ec7c7c6f9e31300b6c025f46d8adec16d8 (diff)
downloadjimtcl-6b53d12f84d9a2f2efa810038ce4a7c2146de928.zip
jimtcl-6b53d12f84d9a2f2efa810038ce4a7c2146de928.tar.gz
jimtcl-6b53d12f84d9a2f2efa810038ce4a7c2146de928.tar.bz2
Implemented the C API "background" for the packages system of Jim.
Diffstat (limited to 'STYLE')
-rw-r--r--STYLE13
1 files changed, 11 insertions, 2 deletions
diff --git a/STYLE b/STYLE
index 99b02d1..906d744 100644
--- a/STYLE
+++ b/STYLE
@@ -28,7 +28,7 @@ Another example is:
JimNotExportedFunction()
Not exported functions that are not general, like functions
-implementing hashtables or jim objects methods can be named
+implementing hashtables or Jim objects methods can be named
in any prefix as long as capitalization rules are followed,
like in:
@@ -47,10 +47,19 @@ lowcase:
thisIsALogVarName
+----
+GOTO
+----
+
+Goto is allowed every time it makes the code cleaner, like in complex
+functions that need to handle exceptions, there is often an "err" label
+at the end of the function where allocated resources are freed before to exit
+with an error. Goto is also used in order to excape multiple nexted loops.
+
----------
C FEATURES
----------
Only C89 ANSI C is allowed. C99 features can't be used currently.
-
+GCC extensions are not allowed.