UserInterface/Create_New_Option_Test [ Functions ]

FUNCTION

Allocate and initialize a new option test.

SYNOPSIS

static struct RB_Option_Test *Create_New_Option_Test(
    Option_Test_Kind kind,
    Option_Error_Severity severity )

INPUTS

kind -- the kind of test that has to be created.

SOURCE

{
    struct RB_Option_Test *new_option_test =
        malloc( sizeof( struct RB_Option_Test ) );
    new_option_test->next = NULL;
    new_option_test->option_group = NULL;
    new_option_test->kind = kind;
    new_option_test->severity = severity;
    return new_option_test;
}