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:
1 parent
72ee3e6297
commit
88f93c1de3
5 files changed
+655
-678
No files matched your search
@@ -686,6 +686,4 @@
|
||||
#undef OFF
|
||||
#undef ON
|
||||
|
||||
#include "color.h" /* all color options here. */
|
||||
|
||||
#endif /* CONFIG_H_ */
|
||||
+652
-676
File diff suppressed because it is too large.
Load diff
@@ -24,6 +24,7 @@ CVS_REVISION(debug_c)
|
||||
#include "vars.h"
|
||||
#define MAIN_SOURCE
|
||||
#include "modval.h"
|
||||
#include "color.h"
|
||||
|
||||
unsigned long x_debug = 0;
|
||||
unsigned long internal_debug = 0;
|
||||
|
||||
@@ -14,6 +14,7 @@ CVS_REVISION(fset_c)
|
||||
#include "tcl_bx.h"
|
||||
#define MAIN_SOURCE
|
||||
#include "modval.h"
|
||||
#include "color.h"
|
||||
|
||||
extern void reinit_status (Window *, char *, int);
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ CVS_REVISION(vars_c)
|
||||
#include "cset.h"
|
||||
#include "module.h"
|
||||
#include "tcl_bx.h"
|
||||
#include "color.h"
|
||||
void add_tcl_vars(void);
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user