From: Arnaud Giersch Date: Thu, 19 Apr 2018 11:55:15 +0000 (+0200) Subject: Deprecate xbt_cfg_setdefault_(). X-Git-Tag: v3.20~369 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5553560351107b9a8f73d49b846d1c646a819a8d?hp=985cb4f936f5d78428b12093010b8a99a6c31187 Deprecate xbt_cfg_setdefault_(). --- diff --git a/include/xbt/config.h b/include/xbt/config.h index 045292f61b..03fcda0bfd 100644 --- a/include/xbt/config.h +++ b/include/xbt/config.h @@ -84,10 +84,14 @@ XBT_PUBLIC void xbt_cfg_set_as_string(const char* name, const char* val); Set the default value of the cell \a name in \a cfg with the provided value. If it was already set to something (possibly from the command line), do nothing. */ -XBT_PUBLIC void xbt_cfg_setdefault_int(const char* name, int val); -XBT_PUBLIC void xbt_cfg_setdefault_double(const char* name, double val); -XBT_PUBLIC void xbt_cfg_setdefault_string(const char* name, const char* val); -XBT_PUBLIC void xbt_cfg_setdefault_boolean(const char* name, const char* val); +XBT_ATTRIB_DEPRECATED_v323("Please use simgrid::config::set_default") XBT_PUBLIC + void xbt_cfg_setdefault_int(const char* name, int val); +XBT_ATTRIB_DEPRECATED_v323("Please use simgrid::config::set_default") XBT_PUBLIC + void xbt_cfg_setdefault_double(const char* name, double val); +XBT_ATTRIB_DEPRECATED_v323("Please use simgrid::config::set_default") XBT_PUBLIC + void xbt_cfg_setdefault_boolean(const char* name, const char* val); +XBT_ATTRIB_DEPRECATED_v323("Please use simgrid::config::set_default") XBT_PUBLIC + void xbt_cfg_setdefault_string(const char* name, const char* val); /** @brief Return if configuration is set by default*/ XBT_PUBLIC int xbt_cfg_is_default_value(const char* name);