]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/c-indentation.el
Check public key is not NULL.
[thirdparty/openssl.git] / doc / c-indentation.el
CommitLineData
ad38bedb
BM
1; This Emacs Lisp file defines a C indentation style that closely
2; follows most aspects of the one that is used throughout SSLeay,
3; and hence in OpenSSL.
4;
5; This definition is for the "CC mode" package, which is the default
6; mode for editing C source files in Emacs 20, not for the older
4c0c7392 7; c-mode.el (which was the default in less recent releaes of Emacs 19).
ad38bedb
BM
8;
9; Copy the definition in your .emacs file or use M-x eval-buffer.
10; To activate this indentation style, visit a C file, type
11; M-x c-set-style <RET> (or C-c . for short), and enter "eay".
12; To toggle the auto-newline feature of CC mode, type C-c C-a.
13;
14; Apparently statement blocks that are not introduced by a statement
15; such as "if" and that are not the body of a function cannot
05dbe6ee 16; be handled too well by CC mode with this indentation style,
e1c191fe
BM
17; so you have to indent them manually (you can use C-q tab).
18;
05dbe6ee 19; For suggesting improvements, please send e-mail to bodo@openssl.org.
ad38bedb
BM
20
21(c-add-style "eay"
e1c191fe 22 '((c-basic-offset . 8)
294ba3c2 23 (indent-tabs-mode . t)
ad38bedb
BM
24 (c-comment-only-line-offset . 0)
25 (c-hanging-braces-alist)
26 (c-offsets-alist . ((defun-open . +)
27 (defun-block-intro . 0)
6c2c3e9b
RL
28 (class-open . +)
29 (class-close . +)
ad38bedb 30 (block-open . 0)
6c2c3e9b 31 (block-close . 0)
ad38bedb 32 (substatement-open . +)
6c2c3e9b 33 (statement . 0)
ad38bedb
BM
34 (statement-block-intro . 0)
35 (statement-case-open . +)
36 (statement-case-intro . +)
37 (case-label . -)
38 (label . -)
6c2c3e9b
RL
39 (arglist-cont-nonempty . +)
40 (topmost-intro . -)
569e7f6e
RL
41 (brace-list-close . 0)
42 (brace-list-intro . 0)
43 (brace-list-open . +)
6c2c3e9b
RL
44 ))))
45