res = xbt_new(s_gras_cbps_t, 1);
res->lints = xbt_dynar_new(sizeof(int), NULL);
res = xbt_new(s_gras_cbps_t, 1);
res->lints = xbt_dynar_new(sizeof(int), NULL);
/* no leak, the content is freed manually on block_end */
res->frames = xbt_dynar_new(sizeof(xbt_dynar_t), NULL);
res->globals = xbt_dynar_new(sizeof(char *), NULL);
/* no leak, the content is freed manually on block_end */
res->frames = xbt_dynar_new(sizeof(xbt_dynar_t), NULL);
res->globals = xbt_dynar_new(sizeof(char *), NULL);
if (e.category != mismatch_error)
RETHROW;
XBT_DEBUG("Create a new variable stack for '%s' into the space", name);
varstack = xbt_dynar_new(sizeof(gras_cbps_elm_t *), NULL);
if (e.category != mismatch_error)
RETHROW;
XBT_DEBUG("Create a new variable stack for '%s' into the space", name);
varstack = xbt_dynar_new(sizeof(gras_cbps_elm_t *), NULL);
- xbt_dict_set(ps->space, varname, (void **) varstack, NULL);
+ xbt_dict_set(ps->space, name, (void **) varstack, NULL);
XBT_DEBUG("pop(%s)", name);
TRY {
varstack = xbt_dict_get(ps->space, name);
XBT_DEBUG("pop(%s)", name);
TRY {
varstack = xbt_dict_get(ps->space, name);
- THROW1(not_found_error, 1, "Asked to pop the non-existant %s", name);
+ THROWF(not_found_error, 1, "Asked to pop the non-existant %s", name);
XBT_DEBUG("Last incarnation of %s poped. Kill it", name);
xbt_dict_remove(ps->space, name);
xbt_dynar_free(&varstack);
XBT_DEBUG("Last incarnation of %s poped. Kill it", name);
xbt_dict_remove(ps->space, name);
xbt_dynar_free(&varstack);
"More block_end than block_begin");
xbt_dynar_pop(ps->frames, &frame);
"More block_end than block_begin");
xbt_dynar_pop(ps->frames, &frame);
varstack = xbt_dict_get(ps->space, name);
xbt_dynar_pop(varstack, &var);
varstack = xbt_dict_get(ps->space, name);
xbt_dynar_pop(varstack, &var);
xbt_dict_remove(ps->space, name);
xbt_dynar_free_container(&varstack); /*already empty, save a test ;) */
}
xbt_dict_remove(ps->space, name);
xbt_dynar_free_container(&varstack); /*already empty, save a test ;) */
}
"gras_cbps_i_pop: no value to pop");
ret = xbt_dynar_pop_as(ps->lints, int);
XBT_DEBUG("pop %d as a size", ret);
"gras_cbps_i_pop: no value to pop");
ret = xbt_dynar_pop_as(ps->lints, int);
XBT_DEBUG("pop %d as a size", ret);