Only include color.h in source files that require it

Remove the inclusion of color.h from config.h, which is included by every file via irc.h, and instead
include it only in debug.c, fset.c and vars.c which are the only files that use it.

This minimises the number of files that need to be rebuilt when changing default format strings.
This commit is contained in:
Kevin Easton
2017-06-27 18:22:45 +10:00
parent 72ee3e6297
commit 88f93c1de3
5 changed files with 655 additions and 678 deletions

View File

@@ -686,6 +686,4 @@
#undef OFF #undef OFF
#undef ON #undef ON
#include "color.h" /* all color options here. */
#endif /* CONFIG_H_ */ #endif /* CONFIG_H_ */

File diff suppressed because it is too large Load Diff

View File

@@ -24,6 +24,7 @@ CVS_REVISION(debug_c)
#include "vars.h" #include "vars.h"
#define MAIN_SOURCE #define MAIN_SOURCE
#include "modval.h" #include "modval.h"
#include "color.h"
unsigned long x_debug = 0; unsigned long x_debug = 0;
unsigned long internal_debug = 0; unsigned long internal_debug = 0;

View File

@@ -14,6 +14,7 @@ CVS_REVISION(fset_c)
#include "tcl_bx.h" #include "tcl_bx.h"
#define MAIN_SOURCE #define MAIN_SOURCE
#include "modval.h" #include "modval.h"
#include "color.h"
extern void reinit_status (Window *, char *, int); extern void reinit_status (Window *, char *, int);

View File

@@ -39,6 +39,7 @@ CVS_REVISION(vars_c)
#include "cset.h" #include "cset.h"
#include "module.h" #include "module.h"
#include "tcl_bx.h" #include "tcl_bx.h"
#include "color.h"
void add_tcl_vars(void); void add_tcl_vars(void);