mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
lint
This commit is contained in:
parent
f7639e2490
commit
af2b5abcd6
@ -21570,7 +21570,7 @@ void func_unref(char_u *name)
|
|||||||
fp = find_func(name);
|
fp = find_func(name);
|
||||||
if (fp == NULL) {
|
if (fp == NULL) {
|
||||||
#ifdef EXITFREE
|
#ifdef EXITFREE
|
||||||
if (!entered_free_all_mem)
|
if (!entered_free_all_mem) // NOLINT(readability/braces)
|
||||||
#endif
|
#endif
|
||||||
EMSG2(_(e_intern2), "func_unref()");
|
EMSG2(_(e_intern2), "func_unref()");
|
||||||
} else {
|
} else {
|
||||||
|
@ -640,10 +640,10 @@ EXTERN int exiting INIT(= FALSE);
|
|||||||
// true when in or after free_all_mem()
|
// true when in or after free_all_mem()
|
||||||
EXTERN bool entered_free_all_mem INIT(= false);
|
EXTERN bool entered_free_all_mem INIT(= false);
|
||||||
#endif
|
#endif
|
||||||
/* volatile because it is used in signal handler deathtrap(). */
|
// volatile because it is used in signal handler deathtrap().
|
||||||
EXTERN volatile int full_screen INIT(= FALSE);
|
EXTERN volatile int full_screen INIT(= false);
|
||||||
/* TRUE when doing full-screen output
|
// TRUE when doing full-screen output
|
||||||
* otherwise only writing some messages */
|
// otherwise only writing some messages
|
||||||
|
|
||||||
EXTERN int restricted INIT(= FALSE);
|
EXTERN int restricted INIT(= FALSE);
|
||||||
// TRUE when started in restricted mode (-Z)
|
// TRUE when started in restricted mode (-Z)
|
||||||
|
@ -489,10 +489,11 @@ void free_all_mem(void)
|
|||||||
{
|
{
|
||||||
buf_T *buf, *nextbuf;
|
buf_T *buf, *nextbuf;
|
||||||
|
|
||||||
/* When we cause a crash here it is caught and Vim tries to exit cleanly.
|
// When we cause a crash here it is caught and Vim tries to exit cleanly.
|
||||||
* Don't try freeing everything again. */
|
// Don't try freeing everything again.
|
||||||
if (entered_free_all_mem)
|
if (entered_free_all_mem) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
entered_free_all_mem = true;
|
entered_free_all_mem = true;
|
||||||
|
|
||||||
// Don't want to trigger autocommands from here on.
|
// Don't want to trigger autocommands from here on.
|
||||||
|
Loading…
Reference in New Issue
Block a user