git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@381
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
static
gras_error_t
_gras_dictelm_get_rec(gras_dictelm_t *p_head,
static
gras_error_t
_gras_dictelm_get_rec(gras_dictelm_t *p_head,
- const char *key,
- int key_len,
- int offset,
- /* OUT */void **data) {
-
- gras_error_t errcode = no_error;
+ const char *key,
+ int key_len,
+ int offset,
+ void **data) {
+ void *res;
CDEBUG3(dict_search, "Search %.*s in %p", key_len, key, p_head);
CDEBUG3(dict_search, "Search %.*s in %p", key_len, key, p_head);
if (offset >= key_len) {
*data = p_head->content;
if (offset >= key_len) {
*data = p_head->content;
gras_dynar_get(p_head->sub, pos, &p_child);
*data = p_child->content;
gras_dynar_get(p_head->sub, pos, &p_child);
*data = p_child->content;
}
case 2: /* A child constitutes a prefix of the key => recurse */
}
case 2: /* A child constitutes a prefix of the key => recurse */