File: CodingStyle

package info (click to toggle)
krb5-auth-dialog 3.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,260 kB
  • ctags: 1,203
  • sloc: sh: 11,412; ansic: 4,578; xml: 2,171; makefile: 301; lex: 159; python: 58; yacc: 42
file content (36 lines) | stat: -rw-r--r-- 1,468 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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              \
         -TGtkBuilder -TGdkEventWindowState     \
         -TKaPlugin -TKaApplet -TKaAppletClass  \
         -TKaPluginDummy -TKaPluginDummyClass   \
         -TKaPluginPam -TKaPluginPamClass       \
         -TKaPluginAfs -TKaPluginAfsClass       \
         -TKaPwDialog                           \
         -Tkrb5_creds -TDBusGMethodInvocation   \