annotate runtime/indent/lifelines.vim @ 33330:3af53f2895dc v9.0.1930

patch 9.0.1930: compiler warnings with clang-17 Commit: https://github.com/vim/vim/commit/4927bc7d278caa022358832d96604a72a2a58a45 Author: Dominique Pell? <dominique.pelle@tomtom.com> Date: Sun Sep 24 16:12:07 2023 +0200 patch 9.0.1930: compiler warnings with clang-17 Problem: compiler warnings with clang-17 Solution: Fix function prototypes and function pointer fix: clang compilation warnings with -Wstrict-prototypes Change fixes this kind of compilation warnings with clang: ``` proto/if_python3.pro:13:20: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] 13 | int python3_version(); | ^ | void ``` closes: #13166 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Dominique Pell? <dominique.pelle@tomtom.com>
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Sep 2023 16:30:03 +0200
parents 11b656e74444
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2207
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim indent file
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Language: LifeLines
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 " Maintainer: Patrick Texier <p.texier@orsennes.com>
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 " Location: <http://patrick.texier.free.fr/vim/indent/lifelines.vim>
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 " Last Change: 2010 May 7
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 " Only load this indent file when no other was loaded.
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 if exists("b:did_indent")
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 finish
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 endif
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 let b:did_indent = 1
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 " LifeLines uses cindent without ; line terminator, C functions
25773
11b656e74444 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 2207
diff changeset
14 " declarations, C keywords, C++ formatting
2207
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 setlocal cindent
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 setlocal cinwords=""
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 setlocal cinoptions+=+0
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 setlocal cinoptions+=p0
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 setlocal cinoptions+=i0
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 setlocal cinoptions+=t0
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 setlocal cinoptions+=*500
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 let b:undo_indent = "setl cin< cino< cinw<"
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 " vim: ts=8 sw=4