aboutsummaryrefslogtreecommitdiff
path: root/CodingStyle
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-02-14 21:00:53 +0100
committerGuido Günther <agx@sigxcpu.org>2011-02-14 21:00:53 +0100
commitc646d52761bf59f014b9c385d15309880cc5309c (patch)
tree7bb2fa05f721ca1d6263c9b33c3a8e1488d902fd /CodingStyle
parentNew upstream version 0.17 (diff)
downloadkrb5-auth-dialog-c646d52761bf59f014b9c385d15309880cc5309c.tar.gz
krb5-auth-dialog-c646d52761bf59f014b9c385d15309880cc5309c.tar.bz2
krb5-auth-dialog-c646d52761bf59f014b9c385d15309880cc5309c.zip
New upstream version 2.91.6
Diffstat (limited to 'CodingStyle')
-rw-r--r--CodingStyle33
1 files changed, 33 insertions, 0 deletions
diff --git a/CodingStyle b/CodingStyle
new file mode 100644
index 0000000..81fa5e1
--- /dev/null
+++ b/CodingStyle
@@ -0,0 +1,33 @@
+CodingStyle
+-----------
+- secmem/ keeps it's CodingStyle so we can merge easily with pinentry-gtk
+- Public functions start with ka_
+- The object in instance methods is called self
+- Indent in four space units, no tabs
+
+ /*
+ * vim: set tabstop=4:
+ * vim: set shiftwidth=4:
+ * vim: set expandtab:
+ */
+
+- The following indent expression is a good approximation:
+ indent --no-tabs \
+ --indent-level4 \
+ --space-after-procedure-calls \
+ --space-after-for \
+ --space-after-if \
+ --space-after-while \
+ --cuddle-else \
+ --braces-on-if-line \
+ --procnames-start-lines \
+ --braces-on-struct-decl-line \
+ --braces-after-func-def-line \
+ --blank-lines-after-declarations \
+ -Tgchar -Tgpointer -TG_MODULE_EXPORT \
+ -TGParamSpec -TGValue -TGObject \
+ -TGtkWidget -TGtkMenuItem \
+ -TKaPlugin -TKaApplet -TKaAppletClass \
+ -TKaPluginDummy -TKaPluginDummyClass \
+ -TKaPluginPam -TKaPluginPamClass \
+ -TKaPluginAfs -TKaPluginAfsClass
bgstack15