cfg_get_next_item()

Get a node's next item.

Synopsis:

#include <asr/cfg.h>
 
cfg_item_t* cfg_get_next_item(const cfg_item_t *base, const cfg_item_t *current)

Arguments:

base

A pointer to the parent of current. Must not be NULL.

current

A pointer to the node whose next node is required. Can be NULL.

Library:

libasr

Description:

The cfg_get_next_item() function returns the next item of current or the first child of base if current is NULL. Note that the first child of base might be NULL.

Returns:

A pointer to either the current node's next sibling or the first child of base.