;ELC   
;;; Compiled by rms@psilocin.gnu.org on Tue Feb 17 03:25:30 1998
;;; from file /gd/gnu/emacs/lisp/progmodes/cc-styles.el
;;; in Emacs version 20.2.87.5
;;; with bytecomp version 2.38
;;; with all optimizations.
;;; This file uses opcodes which do not exist in Emacs 18.

(if (and (boundp 'emacs-version)
	 (< (aref emacs-version (1- (length emacs-version))) ?A)
	 (or (and (boundp 'epoch::version) epoch::version)
	     (string-lessp emacs-version "19.29")))
    (error "`cc-styles.el' was compiled for Emacs 19.29 or later"))


#@1339 Styles of indentation.
Elements of this alist are of the form:

  (STYLE-STRING [BASE-STYLE] (VARIABLE . VALUE) [(VARIABLE . VALUE) ...])

where STYLE-STRING is a short descriptive string used to select a
style, VARIABLE is any Emacs variable, and VALUE is the intended value
for that variable when using the selected style.

Optional BASE-STYLE if present, is a string and must follow
STYLE-STRING.  BASE-STYLE names a style that this style inherits from.
By default, all styles inherit from the "cc-mode" style, which is
computed at run time.  Style loops generate errors.

Two variables are treated specially.  When VARIABLE is
`c-offsets-alist', the VALUE is a list containing elements of the
form:

  (SYNTACTIC-SYMBOL . OFFSET)

as described in `c-offsets-alist'.  These are passed directly to
`c-set-offset' so there is no need to set every syntactic symbol in
your style, only those that are different from the default.

When VARIABLE is `c-special-indent-hook', its VALUE is added to
`c-special-indent-hook' using `add-hook'.  If VALUE is a list, each
element of the list is added with `add-hook'.

Do not change this variable directly.  Use the function `c-add-style'
to add new styles or modify existing styles (it is not a good idea to
modify existing styles -- you should create a new style that inherits
the existing style.
(defconst c-style-alist '(("gnu" (c-basic-offset . 2) (c-comment-only-line-offset 0 . 0) (c-offsets-alist (statement-block-intro . +) (knr-argdecl-intro . 5) (substatement-open . +) (label . 0) (statement-case-open . +) (statement-cont . +) (arglist-intro . c-lineup-arglist-intro-after-paren) (arglist-close . c-lineup-arglist)) (c-special-indent-hook . c-gnu-impose-minimum) (c-comment-continuation-stars . "") (c-hanging-comment-ender-p . t)) ("k&r" (c-basic-offset . 5) (c-comment-only-line-offset . 0) (c-offsets-alist (statement-block-intro . +) (knr-argdecl-intro . 0) (substatement-open . 0) (label . 0) (statement-cont . +))) ("bsd" (c-basic-offset . 4) (c-comment-only-line-offset . 0) (c-offsets-alist (statement-block-intro . +) (knr-argdecl-intro . +) (substatement-open . 0) (label . 0) (statement-cont . +))) ("stroustrup" (c-basic-offset . 4) (c-comment-only-line-offset . 0) (c-offsets-alist (statement-block-intro . +) (substatement-open . 0) (label . 0) (statement-cont . +))) ("whitesmith" (c-basic-offset . 4) (c-comment-only-line-offset . 0) (c-offsets-alist (statement-block-intro . +) (knr-argdecl-intro . +) (substatement-open . 0) (label . 0) (statement-cont . +))) ("ellemtel" (c-basic-offset . 3) (c-comment-only-line-offset . 0) (c-hanging-braces-alist (substatement-open before after)) (c-offsets-alist (topmost-intro . 0) (topmost-intro-cont . 0) (substatement . +) (substatement-open . 0) (case-label . +) (access-label . -) (inclass . ++) (inline-open . 0))) ("linux" (c-basic-offset . 8) (c-comment-only-line-offset . 0) (c-hanging-braces-alist (brace-list-open) (substatement-open after) (block-close . c-snug-do-while)) (c-cleanup-list brace-else-brace) (c-offsets-alist (statement-block-intro . +) (knr-argdecl-intro . 0) (substatement-open . 0) (label . 0) (statement-cont . +))) ("python" (indent-tabs-mode . t) (fill-column . 72) (c-basic-offset . 8) (c-offsets-alist (substatement-open . 0) (inextern-lang . 0) (arglist-intro . +) (knr-argdecl-intro . +)) (c-hanging-braces-alist (brace-list-open) (brace-list-intro) (brace-list-close) (substatement-open after) (block-close . c-snug-do-while)) (c-comment-continuation-stars . "") (c-hanging-comment-ender-p) (fill-column . 78)) ("java" (c-basic-offset . 4) (c-comment-only-line-offset 0 . 0) (c-hanging-comment-starter-p) (c-offsets-alist (inline-open . 0) (topmost-intro-cont . +) (statement-block-intro . +) (knr-argdecl-intro . 5) (substatement-open . +) (label . 0) (statement-case-open . +) (statement-cont . +) (arglist-intro . c-lineup-arglist-intro-after-paren) (arglist-close . c-lineup-arglist) (access-label . 0) (inher-cont . c-lineup-java-inher) (func-decl-cont . c-lineup-java-throws)))) (#$ . 545))
(defalias 'c-set-style-1 #[(conscell) "@A\211\303=\203 \304\305	\"\2029 \n\306=\2036 	<\203/ 	\2059 \307\306	@\"\210	A\211\202 \307\306	\"\2029 \n	L*\207" [conscell val attr c-offsets-alist mapcar #[(langentry) "@A\303\n	\"*\207" [langentry offset langelem c-set-offset] 3] c-special-indent-hook add-hook] 4])
(defalias 'c-set-style-2 #[(style basestyles) "\305\227	\"\206 \305\226	\"\206 \305	\"\206 \306\307\"A\310\230\204H \n@;\2032 \n@\227\nA\2023 \310\211\f>\203@ \306\311\f#\210\312\211\fB\"\210)\313\314\n\")\207" [style c-style-alist vars base basestyles assoc error "Undefined style: %s" "user" "Style loop detected: %s in %s" c-set-style-2 mapcar c-set-style-1] 5])
(byte-code "\302\300!\204 \303\300	B\303\207" [c-set-style-history current-load-list boundp nil] 2)
#@333 Set CC Mode variables to use one of several different indentation styles.
STYLENAME is a string representing the desired style from the list of
styles described in the variable `c-style-alist'.  See that variable
for details of setting up styles.

The variable `c-indentation-style' always contains the buffer's current
style name.
(defalias 'c-set-style #[(stylename) "\303 \210\304\305\"\210\306\302!\205 \307\211\207" [stylename c-indentation-style zmacs-region-stays c-initialize-builtin-style c-set-style-2 nil boundp t] 3 (#$ . 5399) (list (let ((completion-ignore-case t) (prompt (format "Which %s indentation style? " mode-name))) (completing-read prompt c-style-alist nil t (cons c-indentation-style 0) 'c-set-style-history)))])
#@456 Adds a style to `c-style-alist', or updates an existing one.
STYLE is a string identifying the style to add or update.  DESCRIP is
an association list describing the style and must be of the form:

  ([BASESTYLE] (VARIABLE . VALUE) [(VARIABLE . VALUE) ...])

See the variable `c-style-alist' for the semantics of BASESTYLE,
VARIABLE and VALUE.  This function also sets the current style to
STYLE using `c-set-style' if the optional SET-P flag is non-nil.
(defalias 'c-add-style #[(style descrip &optional set-p) "\227\305	\"\211\203 \n\306!\241\210\202 B	B)\f\205# \307!\207" [style c-style-alist s descrip set-p assoc copy-alist c-set-style] 4 (#$ . 6149) (let ((stylename (completing-read "Style to add: " c-style-alist nil nil nil 'c-set-style-history)) (description (eval-minibuffer "Style description: "))) (list stylename description (y-or-n-p "Set the style too? ")))])
#@6442 Association list of syntactic element symbols and indentation offsets.
As described below, each cons cell in this list has the form:

    (SYNTACTIC-SYMBOL . OFFSET)

When a line is indented, CC Mode first determines the syntactic
context of the line by generating a list of symbols called syntactic
elements.  This list can contain more than one syntactic element and
the global variable `c-syntactic-context' contains the context list
for the line being indented.  Each element in this list is actually a
cons cell of the syntactic symbol and a buffer position.  This buffer
position is called the relative indent point for the line.  Some
syntactic symbols may not have a relative indent point associated with
them.

After the syntactic context list for a line is generated, CC Mode
calculates the absolute indentation for the line by looking at each
syntactic element in the list.  First, it compares the syntactic
element against the SYNTACTIC-SYMBOL's in `c-offsets-alist'.  When it
finds a match, it adds the OFFSET to the column of the relative indent
point.  The sum of this calculation for each element in the syntactic
list is the absolute offset for line being indented.

If the syntactic element does not match any in the `c-offsets-alist',
an error is generated if `c-strict-syntax-p' is non-nil, otherwise the
element is ignored.

Actually, OFFSET can be an integer, a function, a variable, or one of
the following symbols: `+', `-', `++', `--', `*', or `/'.  These
latter designate positive or negative multiples of `c-basic-offset',
respectively: 1, -1, 2, -2, 0.5, and -0.5. If OFFSET is a function, it
is called with a single argument containing the cons of the syntactic
element symbol and the relative indent point.  The function should
return an integer offset.

Here is the current list of valid syntactic element symbols:

 string                 -- inside multi-line string
 c                      -- inside a multi-line C style block comment
 defun-open             -- brace that opens a function definition
 defun-close            -- brace that closes a function definition
 defun-block-intro      -- the first line in a top-level defun
 class-open             -- brace that opens a class definition
 class-close            -- brace that closes a class definition
 inline-open            -- brace that opens an in-class inline method
 inline-close           -- brace that closes an in-class inline method
 func-decl-cont         -- the region between a function definition's
                           argument list and the function opening brace
                           (excluding K&R argument declarations). In C, you
                           cannot put anything but whitespace and comments
                           between them; in C++ and Java, throws declarations
                           and other things can appear in this context.
 knr-argdecl-intro      -- first line of a K&R C argument declaration
 knr-argdecl            -- subsequent lines in a K&R C argument declaration
 topmost-intro          -- the first line in a topmost construct definition
 topmost-intro-cont     -- topmost definition continuation lines
 member-init-intro      -- first line in a member initialization list
 member-init-cont       -- subsequent member initialization list lines
 inher-intro            -- first line of a multiple inheritance list
 inher-cont             -- subsequent multiple inheritance lines
 block-open             -- statement block open brace
 block-close            -- statement block close brace
 brace-list-open        -- open brace of an enum or static array list
 brace-list-close       -- close brace of an enum or static array list
 brace-list-intro       -- first line in an enum or static array list
 brace-list-entry       -- subsequent lines in an enum or static array list
 statement              -- a C (or like) statement
 statement-cont         -- a continuation of a C (or like) statement
 statement-block-intro  -- the first line in a new statement block
 statement-case-intro   -- the first line in a case "block"
 statement-case-open    -- the first line in a case block starting with brace
 substatement           -- the first line after an if/while/for/do/else
 substatement-open      -- the brace that opens a substatement block
 case-label             -- a `case' or `default' label
 access-label           -- C++ private/protected/public access label
 label                  -- any ordinary label
 do-while-closure       -- the `while' that ends a do/while construct
 else-clause            -- the `else' of an if/else construct
 comment-intro          -- a line containing only a comment introduction
 arglist-intro          -- the first line in an argument list
 arglist-cont           -- subsequent argument list lines when no
                           arguments follow on the same line as the
                           arglist opening paren
 arglist-cont-nonempty  -- subsequent argument list lines when at
                           least one argument follows on the same
                           line as the arglist opening paren
 arglist-close          -- the solo close paren of an argument list
 stream-op              -- lines continuing a stream operator construct
 inclass                -- the construct is nested inside a class definition
 cpp-macro              -- the start of a C preprocessor macro definition
 cpp-macro-cont         -- the second and subsequent lines in a
                           multi-line C preprocessor macro definition
 friend                 -- a C++ friend declaration
 objc-method-intro      -- the first line of an Objective-C method definition
 objc-method-args-cont  -- lines continuing an Objective-C method definition
 objc-method-call-cont  -- lines continuing an Objective-C method call
 extern-lang-open       -- brace that opens an external language block
 extern-lang-close      -- brace that closes an external language block
 inextern-lang          -- analogous to `inclass' syntactic symbol,
                           but used inside, e.g. extern "C" constructs
 namespace-open         -- brace that opens a C++ namespace block
 namespace-close        -- brace that closes a C++ namespace block
 innamespace            -- analogous to `inextern-lang' syntactic
                           symbol, but used inside C++ namespace constructs
 template-args-cont     -- C++ template argument list continuations

(defconst c-offsets-alist '((string . -1000) (c . c-lineup-C-comments) (defun-open . 0) (defun-close . 0) (defun-block-intro . +) (class-open . 0) (class-close . 0) (inline-open . +) (inline-close . 0) (func-decl-cont . +) (knr-argdecl-intro . +) (knr-argdecl . 0) (topmost-intro . 0) (topmost-intro-cont . 0) (member-init-intro . +) (member-init-cont . 0) (inher-intro . +) (inher-cont . c-lineup-multi-inher) (block-open . 0) (block-close . 0) (brace-list-open . 0) (brace-list-close . 0) (brace-list-intro . +) (brace-list-entry . 0) (statement . 0) (statement-cont . +) (statement-block-intro . +) (statement-case-intro . +) (statement-case-open . 0) (substatement . +) (substatement-open . +) (case-label . 0) (access-label . -) (label . 2) (do-while-closure . 0) (else-clause . 0) (comment-intro . c-lineup-comment) (arglist-intro . +) (arglist-cont . 0) (arglist-cont-nonempty . c-lineup-arglist) (arglist-close . +) (stream-op . c-lineup-streamop) (inclass . +) (cpp-macro . -1000) (cpp-macro-cont . c-lineup-dont-change) (friend . 0) (objc-method-intro . -1000) (objc-method-args-cont . c-lineup-ObjC-method-args) (objc-method-call-cont . c-lineup-ObjC-method-call) (extern-lang-open . 0) (extern-lang-close . 0) (inextern-lang . +) (namespace-open . 0) (namespace-close . 0) (innamespace . +) (template-args-cont . +)) (#$ . 7045))
(defalias 'c-get-offset #[(langelem) "@A	\236\211\243\f\204%  \203 \306\307	\"\210\202\217 \310\310\202\217 \311=\2031 !\202\217 \312=\203> ![\202\217 \313=\203N !\211\\\310\\\202\217 \314=\203] ![\315_\202\217 \316=\203k !\315\245\202\217 \317=\203z ![\315\245\202\217 \320!\203\207 !\202\217 \247\204\217 J\n\2031\n\321\"`#\"\321=\203\247 \310y\210\202\"\322=\203\264 \323\210\202\"\324=\203\321 \325 \210$\203\326$!\203\310\225b\210\202\"\327=\203\336 \330 \210\202\"\331=\203\353 \332y\210\202\"\333=\203\370 \334y\210\202\"\335=\203\334y\210\330 \210\202\"\336=\203\332y\210\330 \210\202\306\337\"\"\210`#b\210*W\2031\212\nb\210i)\2022\310\\,\207" [langelem symbol relpos c-offsets-alist match offset error "don't know how to indent a %s" 0 + - ++ -- 2 * / functionp bol eol nil bod beginning-of-defun looking-at boi back-to-indentation bonl 1 bopl -1 iopl ionl "unknown buffer position requested: %s" c-strict-syntax-p c-basic-offset position here defun-prompt-regexp] 5])
(byte-code "\302\300!\204 \303\300	B\303\207" [c-read-offset-history current-load-list boundp nil] 2)
(defalias 'c-read-offset #[(langelem) "	\236\243\306\307\n\"\310\311Q\312P\313$\313%\313&\313'$\204\300 \314(\315\313\211\316&\211%\317\230\203: \n\202\272 %\320\230\203E \321\202\272 %\322\230\203P \323\202\272 %\324\230\203[ \325\202\272 %\326\230\203f \327\202\272 %\330\230\203q \331\202\272 %\332\230\203| \333\202\272 \334\335%\"\203\213 \336%!\202\272 \315\337%!\211&!\203\234 &\202\272 \313\340\341\217\203\250 '\202\272 \342&!\203\264 &\202\272 \343 \210\f\313\211$\203$ $.\207" [langelem c-offsets-alist oldoff defstr errmsg prompt format "(default %s): " "Offset must be int, func, var, " "or in [+,-,++,--,*,/] " "Offset " nil completing-read fboundp c-read-offset-history "" "+" + "-" - "++" ++ "--" -- "*" * "/" / string-match "^-?[0-9]+$" string-to-int intern (byte-code "\302\303!\211!\207" [input raw functionp read] 3) ((error)) boundp ding offset input interned raw obarray] 8])
#@266 Change the value of a syntactic element symbol in `c-offsets-alist'.
SYMBOL is the syntactic element symbol to change and OFFSET is the new
offset for that syntactic element.  Optional ADD says to add SYMBOL to
`c-offsets-alist' if it doesn't already appear there.
(defalias 'c-set-offset #[(symbol offset &optional add-p) "\306=\204: \307=\204: \310=\204: \311=\204: \312=\204: \313=\204: \250\204: \314!\204: \315!\204: \316\317\"\210	\n\236\211\203I \241\210\202[ \f\203V 	B\nB\202[ \316\320	\"\210)\315\305!\205e \321\211\207" [offset symbol c-offsets-alist entry add-p zmacs-region-stays + - ++ -- * / functionp boundp error "Offset must be int, func, var, or in [+,-,++,--,*,/]: %s" "%s is not a valid syntactic symbol." t] 4 (#$ . 16932) (let* ((langelem (intern (completing-read (concat "Syntactic symbol to change" (if current-prefix-arg " or add" "") ": ") (mapcar #'(lambda (langelem) (cons (format "%s" (car langelem)) nil)) c-offsets-alist) nil (not current-prefix-arg) (let* ((syntax (c-guess-basic-syntax)) (len (length syntax)) (ic (format "%s" (car (nth (1- len) syntax))))) (cons ic 0))))) (offset (c-read-offset langelem))) (list langelem offset current-prefix-arg))])
(defalias 'c-initialize-builtin-style #[nil "\303\304!\210\305\306\"\204# \305\307\"\204# \310\307\311\312\313\"\"\210\310\306\314\"\210\315	!\210\n\205) \316 \207" [c-style-alist c-default-style c-style-variables-are-local-p c-initialize-cc-mode t assoc "cc-mode" "user" c-add-style mapcar #[(var) "J\302	!)B\207" [var val c-copy-tree] 3] (c-backslash-column c-basic-offset c-cleanup-list c-comment-only-line-offset c-electric-pound-behavior c-hanging-braces-alist c-hanging-colons-alist c-hanging-comment-starter-p c-hanging-comment-ender-p c-offsets-alist) ("user") c-set-style c-make-styles-buffer-local] 5])
(defalias 'c-copy-tree #[(tree) ":\203, A:\203\" \302@!\302\211A@)!\302\211AA)!BB\207\302@!\302A!B\207\207" [tree x c-copy-tree] 5])
#@930 Make all CC Mode style variables buffer local.
If you edit primarily one style of C (or C++, Objective-C, Java) code,
you probably want style variables to be global.  This is the default.

If you edit many different styles of C (or C++, Objective-C, Java) at
the same time, you probably want the CC Mode style variables to be
buffer local.  If you do, then you will need to set any CC Mode style
variables in a hook function (e.g. off of c-mode-common-hook), instead
of at the top level of your ~/.emacs file.

This function makes all the CC Mode style variables buffer local.
Call it after CC Mode is loaded into your Emacs environment.
Conversely, set the variable `c-style-variables-are-local-p' to t in
your .emacs file, before CC Mode is loaded, and this function will be
automatically called when CC Mode is loaded.

Optional argument, when non-nil, means use `make-local-variable'
instead of `make-variable-buffer-local'.
(defalias 'c-make-styles-buffer-local #[(&optional this-buf-only-p) "\203 \303\202	 \304\305\306\n	\"\210\203 \307\310!\202 \304\310!*\207" [this-buf-only-p varsyms func make-local-variable make-variable-buffer-local (c-offsets-alist c-basic-offset c-file-style c-file-offsets c-comment-only-line-offset c-cleanup-list c-hanging-braces-alist c-hanging-colons-alist c-hanging-comment-starter-p c-hanging-comment-ender-p c-backslash-column c-label-minimum-indentation c-indentation-style) mapcar make-local-hook c-special-indent-hook] 3 (#$ . 18904)])
(provide 'cc-styles)
