A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace a combination of malloc+strcpy by xbt_strdup.
[simgrid.git]
/
src
/
surf
/
surf_model.c
diff --git
a/src/surf/surf_model.c
b/src/surf/surf_model.c
index
7713410
..
cfe7d57
100644
(file)
--- a/
src/surf/surf_model.c
+++ b/
src/surf/surf_model.c
@@
-27,13
+27,13
@@
surf_model_t surf_model_init(void)
model->model_private = xbt_new0(s_surf_model_private_t, 1);
model->states.ready_action_set =
model->model_private = xbt_new0(s_surf_model_private_t, 1);
model->states.ready_action_set =
- xbt_swag_new(xbt_swag_offset(action, state_hookup));
+
xbt_swag_new(xbt_swag_offset(action, state_hookup));
model->states.running_action_set =
model->states.running_action_set =
- xbt_swag_new(xbt_swag_offset(action, state_hookup));
+
xbt_swag_new(xbt_swag_offset(action, state_hookup));
model->states.failed_action_set =
model->states.failed_action_set =
- xbt_swag_new(xbt_swag_offset(action, state_hookup));
+
xbt_swag_new(xbt_swag_offset(action, state_hookup));
model->states.done_action_set =
model->states.done_action_set =
- xbt_swag_new(xbt_swag_offset(action, state_hookup));
+
xbt_swag_new(xbt_swag_offset(action, state_hookup));
model->resource_set = xbt_dict_new();
model->action_unref = int_die_impossible_paction;
model->resource_set = xbt_dict_new();
model->action_unref = int_die_impossible_paction;
@@
-49,6
+49,7
@@
surf_model_t surf_model_init(void)
return model;
}
return model;
}
+
/** @brief finalize common datastructures to all models */
void surf_model_exit(surf_model_t model)
{
/** @brief finalize common datastructures to all models */
void surf_model_exit(surf_model_t model)
{
@@
-65,5
+66,3
@@
void *surf_model_resource_by_name(surf_model_t model, const char *name)
{
return xbt_dict_get_or_null(model->resource_set, name);
}
{
return xbt_dict_get_or_null(model->resource_set, name);
}
-
-