summaryrefslogtreecommitdiff
path: root/src/common/ers.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-01-18 21:18:04 +0100
committerHaru <haru@dotalux.com>2015-06-01 10:11:39 +0200
commit2e5e04c5b6e248cb05df4814dbe0d7eed2fe0293 (patch)
treea4533fa3136e43ab6f3a185019539bd0ae0c50b6 /src/common/ers.h
parent41583070c88948264eee4e3683686606f88734eb (diff)
downloadhercules-2e5e04c5b6e248cb05df4814dbe0d7eed2fe0293.tar.gz
hercules-2e5e04c5b6e248cb05df4814dbe0d7eed2fe0293.tar.bz2
hercules-2e5e04c5b6e248cb05df4814dbe0d7eed2fe0293.tar.xz
hercules-2e5e04c5b6e248cb05df4814dbe0d7eed2fe0293.zip
Replaced some of the hardcoded values with constants (misc)
- Replaced several hardcoded values with the appropriate enums. - Added documentation for some hardcoded values that haven't been replaced by enums (yet) - Minor code legibility improvements. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/ers.h')
-rw-r--r--src/common/ers.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/ers.h b/src/common/ers.h
index 85ddfed7a..0117237d7 100644
--- a/src/common/ers.h
+++ b/src/common/ers.h
@@ -71,11 +71,11 @@
#endif /* not ERS_ALIGN_ENTRY */
enum ERSOptions {
- ERS_OPT_NONE = 0x0,
- ERS_OPT_CLEAR = 0x1,/* silently clears any entries left in the manager upon destruction */
- ERS_OPT_WAIT = 0x2,/* wait for entries to come in order to list! */
- ERS_OPT_FREE_NAME = 0x4,/* name is dynamic memory, and should be freed */
- ERS_OPT_CLEAN = 0x8,/* clears used memory upon ers_free so that its all new to be reused on the next alloc */
+ ERS_OPT_NONE = 0x00,
+ ERS_OPT_CLEAR = 0x01,/* silently clears any entries left in the manager upon destruction */
+ ERS_OPT_WAIT = 0x02,/* wait for entries to come in order to list! */
+ ERS_OPT_FREE_NAME = 0x04,/* name is dynamic memory, and should be freed */
+ ERS_OPT_CLEAN = 0x08,/* clears used memory upon ers_free so that its all new to be reused on the next alloc */
ERS_OPT_FLEX_CHUNK = 0x10,/* signs that it should look for its own cache given it'll have a dynamic chunk size, so that it doesn't affect the other ERS it'd otherwise be sharing */
/* Compound, is used to determine whether it should be looking for a cache of matching options */