403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.141
Web Server : Apache
System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/emacs/28.2/lisp/progmodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/emacs/28.2/lisp/progmodes/cc-styles.elc
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.



(byte-code "\300\301!\210\300\302!\210\300\303!\207" [require cc-defs cc-vars cc-align] 2)
#@1337 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 "user" 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).
(defvar c-style-alist '(("gnu" (c-basic-offset . 2) (c-comment-only-line-offset 0 . 0) (c-hanging-braces-alist (substatement-open before after) (arglist-cont-nonempty)) (c-offsets-alist (statement-block-intro . +) (knr-argdecl-intro . 5) (substatement-open . +) (substatement-label . 0) (label . 0) (statement-case-open . +) (statement-cont . +) (arglist-intro . c-lineup-arglist-intro-after-paren) (arglist-close . c-lineup-arglist) (inline-open . 0) (brace-list-open . +) (brace-list-intro first c-lineup-2nd-brace-entry-in-arglist c-lineup-class-decl-init-+ +) (topmost-intro-cont first c-lineup-topmost-intro-cont c-lineup-gnu-DEFUN-intro-cont)) (c-special-indent-hook . c-gnu-impose-minimum) (c-block-comment-prefix . #1="")) ("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) (substatement-label . 0) (label . 0) (statement-cont . +))) ("bsd" (c-basic-offset . 8) (c-comment-only-line-offset . 0) (c-offsets-alist (statement-block-intro . +) (knr-argdecl-intro . +) (substatement-open . 0) (substatement-label . 0) (label . 0) (statement-cont . +) (inline-open . 0) (brace-list-intro first c-lineup-2nd-brace-entry-in-arglist c-lineup-class-decl-init-+ +) (inexpr-class . 0))) ("stroustrup" (c-basic-offset . 4) (c-comment-only-line-offset . 0) (c-offsets-alist (statement-block-intro . +) (substatement-open . 0) (substatement-label . 0) (label . 0) (brace-list-intro first c-lineup-2nd-brace-entry-in-arglist c-lineup-class-decl-init-+ +) (statement-cont . +))) ("whitesmith" (c-basic-offset . 4) (c-comment-only-line-offset . 0) (c-offsets-alist (defun-open . +) (defun-close . c-lineup-whitesmith-in-block) (defun-block-intro add c-lineup-whitesmith-in-block c-indent-multi-line-block) (class-open . +) (class-close . +) (inline-open . +) (inline-close . c-lineup-whitesmith-in-block) (knr-argdecl-intro . +) (block-open . 0) (block-close . c-lineup-whitesmith-in-block) (brace-list-open . +) (brace-list-close . c-lineup-whitesmith-in-block) (brace-list-intro add c-lineup-whitesmith-in-block c-indent-multi-line-block) (brace-list-entry add c-lineup-after-whitesmith-blocks c-indent-multi-line-block) (brace-entry-open add c-lineup-after-whitesmith-blocks c-indent-multi-line-block) (statement add c-lineup-after-whitesmith-blocks c-indent-multi-line-block) (statement-block-intro add c-lineup-whitesmith-in-block c-indent-multi-line-block) (substatement-open . +) (substatement-label . +) (label . 0) (arglist-intro add c-lineup-whitesmith-in-block c-indent-multi-line-block) (arglist-cont add c-lineup-after-whitesmith-blocks c-indent-multi-line-block) (arglist-cont-nonempty add c-lineup-whitesmith-in-block c-indent-multi-line-block) (arglist-close . c-lineup-whitesmith-in-block) (inclass . c-lineup-whitesmith-in-block) (extern-lang-open . +) (namespace-open . +) (module-open . +) (composition-open . +) (extern-lang-close . +) (namespace-close . +) (module-close . +) (composition-close . +) (inextern-lang . c-lineup-whitesmith-in-block) (innamespace . c-lineup-whitesmith-in-block) (inmodule . c-lineup-whitesmith-in-block) (incomposition . c-lineup-whitesmith-in-block) (inexpr-class . 0))) ("ellemtel" (c-basic-offset . 3) (c-comment-only-line-offset . 0) (c-hanging-braces-alist (substatement-open before after) (arglist-cont-nonempty)) (c-offsets-alist (topmost-intro . 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) (brace-entry-open) (substatement-open after) (block-close . c-snug-do-while) (arglist-cont-nonempty)) (c-cleanup-list brace-else-brace) (c-offsets-alist (statement-block-intro . +) (knr-argdecl-intro . 0) (substatement-open . 0) (substatement-label . 0) (label . 0) (statement-cont . +))) ("python" (indent-tabs-mode . t) (fill-column . 78) (c-basic-offset . 8) (c-offsets-alist (substatement-open . 0) (inextern-lang . 0) (arglist-intro . +) (brace-list-intro first c-lineup-2nd-brace-entry-in-arglist c-lineup-class-decl-init-+ +) (knr-argdecl-intro . +)) (c-hanging-braces-alist (brace-list-open) (brace-list-intro) (brace-list-close) (brace-entry-open) (substatement-open after) (block-close . c-snug-do-while) (arglist-cont-nonempty)) (c-block-comment-prefix . #1#)) ("java" (c-basic-offset . 4) (c-comment-only-line-offset 0 . 0) (c-offsets-alist (inline-open . 0) (topmost-intro-cont . +) (statement-block-intro . +) (knr-argdecl-intro . 5) (substatement-open . +) (substatement-label . +) (label . +) (statement-case-open . +) (statement-cont . +) (arglist-intro . c-lineup-arglist-intro-after-paren) (arglist-close . c-lineup-arglist) (brace-list-intro first c-lineup-2nd-brace-entry-in-arglist c-lineup-class-decl-init-+ +) (access-label . 0) (inher-cont . c-lineup-java-inher) (func-decl-cont . c-lineup-java-throws))) ("awk" (c-basic-offset . 4) (c-comment-only-line-offset . 0) (c-hanging-braces-alist (defun-open after) (defun-close . c-snug-1line-defun-close) (substatement-open after) (block-close . c-snug-do-while) (arglist-cont-nonempty)) (c-hanging-semi&comma-criteria) (c-cleanup-list) (c-offsets-alist (statement-block-intro . +) (substatement-open . 0) (statement-cont . +)))) (#$ . 177))
#@31 

(fn CONSCELL DONT-OVERRIDE)
(defalias 'c-set-style-1 #[514 "@A\303\267\202I\304=\203\202\205\305\300!\306\307\310\"\"\207\304=\203-	\2024\2054\305\301!?\205r\211<\203B\306\311\"\207\312\301\304\211$\207\203f\n>\203f\304=\203^J\202a\305!\313=\205rL\210\314=\205r\315 \207" [c-offsets-alist c-special-indent-hook c-style-variables #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (c-offsets-alist 10 c-special-indent-hook 35)) t default-value mapcar make-closure #[257 "\211@A\300\236?\205\301\"\207" [V0 c-set-offset] 6 "\n\n(fn LANGENTRY)"] #[257 "\300\301\302\211$\207" [add-hook c-special-indent-hook t] 6 "\n\n(fn FUNC)"] add-hook set-from-style c-comment-prefix-regexp c-setup-paragraph-variables] 9 (#$ . 6851)])
#@25 

(fn STYLE BASESTYLES)
(defalias 'c-get-style-variables #[514 "\204\302!\207\303\227	\"\206(\303\226	\"\206(\303	\"\206(\304\305\"\210\306 \210\307A\211\242;\2056\211@\227A\262\211>\203E\304\310#\210\306 \207\311\211B\"\302!\244\207" [c-fallback-style c-style-alist copy-alist assoc message "Undefined style: %s" ding nil "Style loop detected: %s in %s" c-get-style-variables] 8 (#$ . 7658)])
(defvar c-set-style-history nil)
#@1076 Set the current buffer to use the style STYLENAME.
STYLENAME, a string, must be an existing CC Mode style - These are contained
in the variable `c-style-alist'.

The variable `c-indentation-style' will get set to STYLENAME.

"Setting the style" is done by setting CC Mode's "style variables" to the
values indicated by the pertinent entry in `c-style-alist'.  Other variables
might get set too.

If DONT-OVERRIDE is neither nil nor t, style variables whose default values
have been set (more precisely, whose default values are not the symbol
`set-from-style') will not be changed.  This avoids overriding global settings
done in your init file.  It is useful to call c-set-style from a mode hook
in this way.

If DONT-OVERRIDE is t, style variables that already have values (i.e., whose
values are not the symbol `set-from-style') will not be overridden.  CC Mode
calls c-set-style internally in this way whilst initializing a buffer; if
c-set-style is called like this from anywhere else, it will usually behave as
a null operation.

(fn STYLENAME &optional DONT-OVERRIDE)
(defalias 'c-set-style #[513 "\204\n\303\304\305 \"\210;\204\303\306!\210\307 \210\310\311\"\204\"\312\313!\210\314\315\316\"\317=\2032\237\2023\"\266\320\302!\205A\317\211\207" [c-buffer-is-cc-mode c-indentation-style zmacs-region-stays error "Buffer %s is not a CC Mode buffer (c-set-style)" buffer-name "Argument to c-set-style was not a string" c-initialize-builtin-style c-get-style-variables nil kill-local-variable c-special-indent-hook mapc make-closure #[257 "\301\300\"\207" [V0 c-set-style-1] 4 "\n\n(fn ELEM)"] t boundp] 7 (#$ . 8114) (byte-code "\304\305\306\"\307\n\310\304\310\311&)\266\202C\207" [mode-name completion-ignore-case c-style-alist c-indentation-style t format "Which %s indentation style? " completing-read nil c-set-style-history] 10)])
#@498 Add a style to `c-style-alist', or update an existing one.
STYLE is a string identifying the style to add or update.  DESCRIPTION
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.

(fn STYLE DESCRIPTION &optional SET-P)
(defalias 'c-add-style #[770 "\227\262\301\"\211\203\211\302!\241\266\202BB\210\211\205$\303!\207" [c-style-alist assoc copy-alist c-set-style] 7 (#$ . 9989) (byte-code "\301\302\303\211\211\304&\305\306!\307\310!E\207" [c-style-alist completing-read "Style to add: " nil c-set-style-history eval-minibuffer "Style description: " y-or-n-p "Set the style too? "] 7)])
(defvar c-read-offset-history nil)
#@17 

(fn LANGELEM)
(defalias 'c-read-offset #[257 "\211\236\206\211\300\305N\236\243\306!\307\310\"\311P\312Q\313 	\314\315\211\316\f\"\210\317\320\321#\210\204U\322\315\323\324\307\325\"&\262\326!\203L\211\262\202-\327 \210\262\202-*\207" [c-offsets-alist obarray minibuffer-completion-table minibuffer-completion-predicate minibuffer-local-completion-map c-stylevar-fallback symbol-name format "(default %s): " "Offset must be int, func, var, vector, list, or [+,-,++,--,*,/] " " offset " make-sparse-keymap fboundp nil set-keymap-parent define-key " " self-insert-command read-from-minibuffer t c-read-offset-history "%s" c-valid-offset ding] 18 (#$ . 10914)])
#@292 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.  The optional argument is not used
and exists only for compatibility reasons.

(fn SYMBOL OFFSET &optional IGNORED)
(defalias 'c-set-offset #[770 "\302!\2033\236\211\203\211\241\266\202<\300\303N\236\203'BB\210\202<\304\305\"\210\306 \266\202<\304\307#\210\306 \210\310\301!\205E\311\211\207" [c-offsets-alist zmacs-region-stays c-valid-offset c-stylevar-fallback message "%s is not a valid syntactic symbol" ding "Invalid indentation setting for symbol %s: %S" boundp t] 7 (#$ . 11610) (byte-code "\305\306\307\203\310\202\f\311\312Q\313\314\315\316N\"\317?	\205<\320 \321\211\321\322\323\"\216\324 \211G\325\326S8@\"\211\327B\266\203,\262%!\330!E\207" [current-prefix-arg c-buffer-is-cc-mode buffer-undo-list inhibit-read-only inhibit-modification-hooks intern completing-read "Syntactic symbol to change" " or add" "" ": " mapcar #[257 "\300\301@\"C\207" [format "%s"] 4 "\n\n(fn LANGELEM)"] c-offsets-alist c-stylevar-fallback nil buffer-modified-p t make-closure #[0 "\300?\205\301\302!\207" [V0 restore-buffer-modified-p nil] 2] c-guess-basic-syntax format "%s" 0 c-read-offset] 14)])
#@225 Fix things up for paragraph recognition and filling inside comments and
strings by incorporating the values of `c-comment-prefix-regexp',
`sentence-end', `paragraph-start' and `paragraph-separate' in the relevant
variables.
(defalias 'c-setup-paragraph-variables #[0 "\204\n\306\307\310 \"\210	<\203\311\n	\"\206\312	\236\243\202	\313\314\"\315\316Q\317P\317\2033\314\2024\315\203=\314\202>\320R\211\f\321
R!\211\"\321
R#\322\211$%\323\324!\203d\315\323\324!\325Q\202e\314P\326\327!\203x\330\327!\210\331\332Q\266\333&\334'\335\336\337 )\340Q\211(\207" [c-buffer-is-cc-mode c-comment-prefix-regexp major-mode c-current-comment-prefix c-paragraph-start page-delimiter error "Buffer %s is not a CC Mode buffer (c-setup-paragraph-variables)" buffer-name assoc other string-match "" "\\(" "\\)[ 	]*" "[ 	]*" "\\)?" "\\|" t default-value adaptive-fill-regexp "\\)" boundp adaptive-fill-first-line-regexp make-local-variable "\\`" "\\'" "\f\\|[ 	]*\\\\?$" "[ 	\f]*\\\\?$" "\\(\\(" nil sentence-end "\\)\\|[.?!][]\"')}]* ?\\\\\\($\\)[ 	\n]*\\)" paragraph-start c-paragraph-separate paragraph-separate paragraph-ignore-fill-prefix adaptive-fill-mode c-string-par-start c-string-par-separate c-sentence-end-with-esc-eol] 9 (#$ . 12926) nil])
#@287 Convenience function to configure Kyle E. Jones' Filladapt mode for
CC Mode by making sure the proper entries are present on
`filladapt-token-table', `filladapt-token-match-table', and
`filladapt-token-conversion-table'.  This is intended to be used on
`c-mode-common-hook' or similar.
(defalias 'c-setup-filladapt #[0 "\304\262\211\203\211\242\243\242\305=\204\211\243\262\202\211\203%\211@	\240\266\2021\306@	\305DDA\"\210\305\n\236\204<\306\307\n\"\305\236?\205I\306\310\"\211\207" [filladapt-token-table c-current-comment-prefix filladapt-token-match-table filladapt-token-conversion-table nil c-comment append ((c-comment c-comment)) ((c-comment . exact))] 5 (#$ . 14205)])
(defalias 'c-initialize-builtin-style #[0 "\303\304N?\205d\305\303\304\306#\210\307\310\"\204R	\311\211\211\203L@\262J\262A\262\312=\203<\203\312BB\262\202\313=\204BB\262\202\314\310\"\266\307\315\"\204^\314\315\316\"\210\n\205d\317 \207" [c-style-alist c-style-variables c-style-variables-are-local-p c-initialize-builtin-style is-run put t assoc "user" nil c-offsets-alist set-from-style c-add-style "cc-mode" ("user") c-make-styles-buffer-local] 7])
#@459 Make all CC Mode style variables buffer local.
If THIS-BUF-ONLY-P is non-nil, the style variables will be made
buffer local only in the current buffer.  Otherwise they'll be made
permanently buffer local in any buffer that changes their values.

The buffer localness of the style variables are normally controlled
with the variable `c-style-variables-are-local-p', so there's seldom
any reason to call this function directly.

(fn &optional THIS-BUF-ONLY-P)
(defalias 'c-make-styles-buffer-local #[256 "\211\203\302\202	\303\304\305!B\306\307\"\210\310\"\210?\205 \311\211\207" [c-style-variables c-style-variables-are-local-p make-local-variable make-variable-buffer-local c-indentation-style copy-alist delq c-special-indent-hook mapc t] 6 (#$ . 15400)])
#@133 Return suitable style for MODE from DEFAULT-STYLE.
DEFAULT-STYLE has the same format as `c-default-style'.

(fn MODE DEFAULT-STYLE)
(defalias 'cc-choose-style-for-mode #[514 "\211;\203\207\236A\206\300\236A\206\301\207" [other "gnu"] 4 (#$ . 16174)])
(provide 'cc-styles)

Youez - 2016 - github.com/yon3zu
LinuXploit