cfg_merge()

Move configuration nodes from a doner to a new parent node.

Synopsis:

#include <asr/cfg.h>
 
void cfg_merge(cfg_item_t *parent, cfg_item_t *doner)

Arguments:

parent

A pointer to the node to attach the item to.

doner

A pointer to the node whose next item will be moved to the new parent.

Library:

libasr

Description:

The cfg_merge() function removes the doner node's next item (along with its children) and attaches it as a child of the specified node (parent).

Returns:

Nothing.