- char* lowername = str_tolower (action_name);
- xbt_dict_remove(action_funs, lowername);
- xbt_free(lowername);
-}
-
-void _xbt_replay_action_init(void)
-{
- action_funs = xbt_dict_new_homogeneous(NULL);
- action_queues = xbt_dict_new_homogeneous(NULL);
+ if (xbt_action_funs)
+ return 0;
+ is_replay_active = 1;
+ xbt_action_funs = xbt_dict_new_homogeneous(NULL);
+ xbt_action_queues = xbt_dict_new_homogeneous(NULL);
+ return 1;