src/index/utils.c
// add 'composition' to the list of compositions whose second component is 'role'
// (see the note for the function add_role_to_second_component_of_list above)
add 'composition' to the list of compositions whose second component is 'role'
add ' composition ' to the list of compositions whose second component is ' role '
void add_role_to_second_component_of_list(ObjectPropertyExpression* role, ObjectPropertyExpression* composition) {
	ObjectPropertyExpression** tmp;
	if (SET_ADD(composition, &(role->second_component_of))) {
		tmp = realloc(role->second_component_of_list, (role->second_component_of_count + 1) * sizeof(ClassExpression*));
		assert(tmp != NULL);
		role->second_component_of_list = tmp;
		role->second_component_of_list[role->second_component_of_count] = composition;
		role->second_component_of_count++;
	}
}
void add_role_to_second_component_of_list ( ObjectPropertyExpression * role , ObjectPropertyExpression * composition ) { ObjectPropertyExpression * * tmp ; if ( SET_ADD ( composition , & ( role -> second_component_of ) ) ) { tmp = realloc ( role -> second_component_of_list , ( role -> second_component_of_count + 1 ) * sizeof ( ClassExpression * ) ) ; assert ( tmp != NULL ) ; role -> second_component_of_list = tmp ; role -> second_component_of_list [ role -> second_component_of_count ] = composition ; role -> second_component_of_count ++ ; } }
add 'composition' to the list of compositions whose second component is 'role'
(see the note for the function add_role_to_second_component_of_list above)
add ' composition ' to the list of compositions whose second component is ' role ' ( see the note for the function add_role_to_second_component_of_list above )