Codebase list krb5-auth-dialog / scrub-obsolete/main CodingStyle
scrub-obsolete/main

Tree @scrub-obsolete/main (Download .tar.gz)

CodingStyle @scrub-obsolete/mainraw · history · blame

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   \