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:
Felipe Oliveira Carvalho
2014-03-22 12:25:01 -03:00
committed by Thiago de Arruda
parent b7f953b9e4
commit 68bc6bce29
16 changed files with 71 additions and 69 deletions

View File

@@ -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 */