XBT:
* Mallocators: allow value NULL for the reset function.
- * Dicts: new function xbt_dict_new_homogeneous(void(*)(void*)) to
- create homogeneous dictionaries, where all the elements share the
- same free function. Non homogeneous dictionaries will be
- deprecated in the next release.
- * Dicts: dicts of scalar elements (xbt_dicti_*) are deprecated.
+ * Dicts:
+ - New function xbt_dict_new_homogeneous(void(*)(void*)) to
+ create homogeneous dictionaries, where all the elements share the
+ same free function. Non homogeneous dictionaries will be
+ deprecated in the next release.
+ - Dicts of scalar elements (xbt_dicti_*) are deprecated.
+ - Multi-level dictionaries are deprecated.
* mmalloc module:
- cleanups and simplifications to make it maintainable again
- exotic features (such as memalign and valloc) were removed
xbt_dict_cursor_step(cursor) )
/** @} */
+
+#ifdef XBT_USE_DEPRECATED
/** @defgroup XBT_dict_multi Multi-level dictionaries
* @ingroup XBT_dict
*
xbt_dynar_t lens);
/** @} */
+#endif
SG_END_DECL()
#endif /* _XBT_DICT_H */
xbt_dict_free(&head);
}
+#ifdef XBT_USE_DEPRECATED
static void str_free(void *s)
{
char *c = *(char **) s;
free(c);
}
+#endif
XBT_TEST_UNIT("multicrash", test_dict_multicrash, "Multi-dict crash test")
{
+#ifdef XBT_USE_DEPRECATED
#undef NB_ELM
#define NB_ELM 100 /*00 */
xbt_dict_free(&mdict);
xbt_dynar_free(&keys);
+#endif
}
+
#endif /* SIMGRID_TEST */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#ifdef XBT_USE_DEPRECATED
+
#include "dict_private.h"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_dict_multi, xbt_dict,
RETHROW;
}
}
+
+#endif