1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 11:43:11 +02:00

Get rid of INCLUDE_NOTLOADED and INCLUDE_USED which AFAICT are

unnecessary. Get rid of load_includes() which did the marking
and unload_notloaded_includes() and unload_loaded_includes()
accordingly. There's now one single free_all_includes().
This commit is contained in:
Bram Matthys
2021-08-18 11:52:53 +02:00
parent 9e887ea4e9
commit 03423a2eb7
2 changed files with 28 additions and 187 deletions
+2 -16
View File
@@ -1889,22 +1889,8 @@ struct ConfigItem_alias_format {
Match *expr;
};
/**
* In a rehash scenario, conf_include will contain all of the included
* configs that are actually in use. It also will contain includes
* that are being processed so that the configuration may be updated.
* INCLUDE_NOTLOADED is set on all of the config files that are being
* loaded and unset on already-loaded files. See
* unload_loaded_includes() and load_includes().
*/
#define INCLUDE_NOTLOADED 0x1
#define INCLUDE_REMOTE 0x2
#define INCLUDE_DLQUEUED 0x4
/**
* Marks that an include was loaded without error. This seems to
* overlap with the INCLUDE_NOTLOADED meaning(?). --binki
*/
#define INCLUDE_USED 0x8
#define INCLUDE_REMOTE 0x1
#define INCLUDE_DLQUEUED 0x2
struct ConfigItem_include {
ConfigItem_include *prev, *next;