svn rev #23049: trunk/src/ prototype/ util/

tlyu@MIT.EDU tlyu at MIT.EDU
Mon Oct 26 15:08:44 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=23049
Commit By: tlyu
Log Message:
Fix missing emacs file variable markers.  Add krb5-c-style.el: the
emacs lisp settings for the standard coding style.


Changed Files:
U   trunk/src/prototype/getopt.c
U   trunk/src/prototype/prototype.c
U   trunk/src/prototype/prototype.h
A   trunk/src/util/krb5-c-style.el
Modified: trunk/src/prototype/getopt.c
===================================================================
--- trunk/src/prototype/getopt.c	2009-10-26 18:20:58 UTC (rev 23048)
+++ trunk/src/prototype/getopt.c	2009-10-26 19:08:43 UTC (rev 23049)
@@ -1,4 +1,4 @@
-/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil */
+/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
 
 extern int optind;
 extern char *optarg;

Modified: trunk/src/prototype/prototype.c
===================================================================
--- trunk/src/prototype/prototype.c	2009-10-26 18:20:58 UTC (rev 23048)
+++ trunk/src/prototype/prototype.c	2009-10-26 19:08:43 UTC (rev 23049)
@@ -1,4 +1,4 @@
-/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil */
+/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
 /*
  * prototype/prototype.c
  *

Modified: trunk/src/prototype/prototype.h
===================================================================
--- trunk/src/prototype/prototype.h	2009-10-26 18:20:58 UTC (rev 23048)
+++ trunk/src/prototype/prototype.h	2009-10-26 19:08:43 UTC (rev 23049)
@@ -1,4 +1,4 @@
-/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil */
+/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
 /*
  * prototype/prototype.h
  *

Added: trunk/src/util/krb5-c-style.el
===================================================================
--- trunk/src/util/krb5-c-style.el	2009-10-26 18:20:58 UTC (rev 23048)
+++ trunk/src/util/krb5-c-style.el	2009-10-26 19:08:43 UTC (rev 23049)
@@ -0,0 +1,30 @@
+;;; -*- mode: emacs-lisp; indent-tabs-mode: nil -*-
+(defconst krb5-c-style
+  '("bsd"
+    (c-basic-offset     . 4)
+    (c-cleanup-list     . (brace-elseif-brace
+                           brace-else-brace
+                           defun-close-semi))
+    (c-comment-continuation-stars       . "* ")
+    (c-comment-only-line-offset . 0)
+    (c-electric-pound-behavior  . (alignleft))
+    (c-hanging-braces-alist     . ((block-close . c-snug-do-while)
+                                   (brace-list-open)
+                                   (class-open after)
+                                   (extern-lang-open after)
+                                   (substatement-open after)))
+    (c-hanging-colons-alist     . ((case-label after)
+                                   (label after)))
+    (c-hanging-comment-starter-p        . nil)
+    (c-hanging-comment-ender-p          . nil)
+    (c-indent-comments-syntactically-p  . t)
+    (c-label-minimum-indentation        . 0)
+    (c-offsets-alist    . ((inextern-lang . 0)
+                           (arglist-close . 0)))
+    (c-special-indent-hook      . nil)
+    (fill-column                . 79)))
+
+(defun krb5-c-hook ()
+  (c-add-style "krb5" krb5-c-style))
+
+(add-hook 'c-initialization-hook 'krb5-c-hook)




More information about the cvs-krb5 mailing list