mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00

Current name is inappropriate for the following reasons: 1. It is often masked by local `loop` variables. 2. It cannot be searched for. There are many `loop` variables where `loop` is some local variable. There are many cases when “loop” word is used in a comment. 3. It is in any case bad idea to use a generic name as a name of the global variable. Best if global has module prefix: this is why it is in `main.h`: `main_loop` both stands for “a main loop” and “a loop defined in `main.*`”. Since I have no idea how to list every occurrence of this variable method used to rename it is “remove it from globals.h, try to compile, fix errors”. Thus if some occurrence was hidden under false `#if` branch it was not replaced.
13 lines
219 B
C
13 lines
219 B
C
#ifndef NVIM_MAIN_H
|
|
#define NVIM_MAIN_H
|
|
|
|
#include "nvim/normal.h"
|
|
#include "nvim/event/loop.h"
|
|
|
|
extern Loop main_loop;
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "main.h.generated.h"
|
|
#endif
|
|
#endif // NVIM_MAIN_H
|