Mercurial > hg > th-libs
diff th_config.h @ 453:efd33accdc81
Break backwards compatibility by renaming BOOL, TRUE and FALSE to lowercase.
Introduce optional but default use of stdbool.h.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Jan 2018 22:56:03 +0200 |
parents | 6cfa9bc91ee6 |
children | 85fa3d333556 |
line wrap: on
line diff
--- a/th_config.h Wed Oct 25 22:32:07 2017 +0300 +++ b/th_config.h Tue Jan 02 22:56:03 2018 +0200 @@ -25,7 +25,7 @@ ITEM_STRING, ITEM_INT, ITEM_UINT, - ITEM_BOOL, + ITEM_bool, ITEM_FLOAT, ITEM_HEX_TRIPLET, @@ -44,7 +44,7 @@ int *val_int; unsigned int *val_uint; char **val_str; - BOOL *val_bool; + bool *val_bool; float *val_float; void *data; @@ -67,7 +67,7 @@ int th_cfg_add_uint(th_cfgitem_t **cfg, const char *name, unsigned int *data, unsigned int defValue); int th_cfg_add_float(th_cfgitem_t **cfg, const char *name, float *data, float defValue); int th_cfg_add_string(th_cfgitem_t **cfg, const char *name, char **data, char *defValue); -int th_cfg_add_bool(th_cfgitem_t **cfg, const char *name, BOOL *data, BOOL defValue); +int th_cfg_add_bool(th_cfgitem_t **cfg, const char *name, bool *data, bool defValue); int th_cfg_add_float(th_cfgitem_t **cfg, const char *name, float *data, float defValue); int th_cfg_add_hexvalue(th_cfgitem_t **cfg, const char *name, int *data, int defValue); int th_cfg_add_string_list(th_cfgitem_t **cfg, const char *name, th_llist_t **list);