mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
Do not include farsi.c in main.c
- Change CMakeLists.txt to compile farsi.c normally - Add const to global variables in farsi.h and define them in farsi.c (no need to include farsi.h with DO_INIT defined in globals.h) - Include farsi.h where necessary - Include all necessary headers in farsi.c - Move farsi function declarations from main.h to farsi.h
This commit is contained in:

committed by
Thiago de Arruda

parent
b7f953b9e4
commit
68bc6bce29
@@ -1139,9 +1139,4 @@ EXTERN int curr_tmode INIT(= TMODE_COOK); /* contains current terminal mode */
|
||||
/* volatile because it is used in signal handler deathtrap(). */
|
||||
EXTERN volatile bool in_mch_delay INIT(= false); /* sleeping in mch_delay() */
|
||||
|
||||
/*
|
||||
* Optional Farsi support. Include it here, so EXTERN and INIT are defined.
|
||||
*/
|
||||
# include "farsi.h"
|
||||
|
||||
#endif /* NEOVIM_GLOBALS_H */
|
||||
|
Reference in New Issue
Block a user