+/* Functions passed to the mallocator constructor */
+static void* fifo_item_mallocator_new_f(void) {
+ return xbt_new(s_xbt_fifo_item_t, 1);
+}
+
+static void fifo_item_mallocator_free_f(void* item) {
+ xbt_free(item);
+}
+
+static void fifo_item_mallocator_reset_f(void* item) {
+ /* memset to zero like calloc */
+ memset(item, 0, sizeof(s_xbt_fifo_item_t));
+}
+
+/** Constructor
+ * \return a new bucket
+ */
+xbt_fifo_item_t xbt_fifo_new_item(void)
+{
+ return xbt_mallocator_get(item_mallocator);
+}
+
+/** \deprecated Use #xbt_fifo_new_item instead.