summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorScott Moynes <smoynes@nexus.carleton.ca>2003-05-18 16:10:38 +0000
committerScott Moynes <smoynes@nexus.carleton.ca>2003-05-18 16:10:38 +0000
commit3c7bf77dd9a14f93a63f9d790c1bdcf79b63eb39 (patch)
treef1d50cb19235149cbf8498c9974dabf2fd53c692 /HACKING
parent971b3a83209a125ac8c510043c69e0a151a971e9 (diff)
Indentation stuff
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING16
1 files changed, 16 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index 45104201..5e97afde 100644
--- a/HACKING
+++ b/HACKING
@@ -25,3 +25,19 @@ translate it into what you see. The Client.frame.area is the actual position
and size of the entire frame. This is usually the value you want to use, unless
you are in client.c (probably) and adjusting/using the position or size from
the client's perspective.
+
+Indentation
+-----------
+For openbox, we aim to have consistent coding style. Some, but surely
+not all, guidelines:
+ * use 4 space indents
+ * tabs should not appear in source files
+ * functions should have the opening and closing braces on their own
+ lines
+ * most other constructs should have braces on the same line as the
+ statement
+ * when in doubt look at the rest of the source
+ * vim users can use "set expandtab tabstop=4 shiftwidth=4
+ softtabstop=4" for some of this
+
+