/* dict_multi - dictionnaries of dictionnaries of ... of data */
-/* Authors: Martin Quinson */
-/* Copyright (C) 2003,2004 Martin Quinson. */
+/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
- under the terms of the license (GNU LGPL) which comes with this package. */
+ * under the terms of the license (GNU LGPL) which comes with this package. */
#include "gras_private.h"
}
TRYCLEAN(gras_multidict_set_ext(pp_head, keycount, key, key_len, data, free_ctn),
- free(key_len));
+ gras_free(key_len));
- free(key_len);
+ gras_free(key_len);
return errcode;
}
i++;
}
- if (p_elm) { // Found all dicts to the data
+ if (p_elm) { /* Found all dicts to the data */
- // gras_dict_dump(dict,&gras_dict_prints);
+ /* gras_dict_dump(dict,&gras_dict_prints); */
return gras_dict_get_ext(p_elm, key[i], key_len[i], data);
} else {
}
TRYCLEAN(gras_multidict_get_ext(p_head, keycount, key, key_len, data),
- free(key_len));
- free(key_len);
+ gras_free(key_len));
+ gras_free(key_len);
return errcode;
}
}
if (p_elm) {
- // Found all dicts to the data
+ /* Found all dicts to the data */
return gras_dict_remove_ext(p_elm, key[i], key_len[i]);
} else {
return 1;
}
TRYCLEAN(gras_multidict_remove_ext(p_head, keycount, key, key_len),
- free(key_len));
- free(key_len);
+ gras_free(key_len));
+ gras_free(key_len);
return errcode;
}