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:
@@ -686,6 +686,4 @@
|
||||
#undef OFF
|
||||
#undef ON
|
||||
|
||||
#include "color.h" /* all color options here. */
|
||||
|
||||
#endif /* CONFIG_H_ */
|
||||
|
||||
1328
source/Makefile.in
1328
source/Makefile.in
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