- recursiveDestroyType (PJ_type_get_root());
- rootType = nullptr;
-}
-
-type_t PJ_type_get (const char *name, type_t father)
-{
- type_t ret = PJ_type_get_or_null (name, father);
- if (ret == nullptr){
- THROWF (tracing_error, 2, "type with name (%s) not found in father type (%s)", name, father->name);
- }
- return ret;
-}
-
-type_t PJ_type_get_or_null (const char *name, type_t father)
-{
- if (name == nullptr || father == nullptr){
- THROWF (tracing_error, 0, "can't get type with a nullptr name or from a nullptr father");
- }
-
- type_t ret = nullptr;
- type_t child;
- char *child_name;
- xbt_dict_cursor_t cursor = nullptr;
- xbt_dict_foreach(father->children, cursor, child_name, child) {
- if (strcmp (child->name, name) == 0){
- if (ret != nullptr){