Analyser/ToBeAdded [ Functions ]

FUNCTION

Test whether or not a header needs to be added to the list of headers. This implements the options

      --internal 

and

      --internalonly

SYNPOPSIS

INPUTS

RESULT

TRUE -- Add header FALSE -- Don't add header

SOURCE

{
    int                 add = FALSE;

    if ( header->is_internal )
    {
        if ( ( document->actions.do_include_internal ) ||
             ( document->actions.do_internal_only ) )
        {
            add = TRUE;
        }
        else
        {
            add = FALSE;
        }
    }
    else
    {
        if ( document->actions.do_internal_only )
        {
            add = FALSE;
        }
        else
        {
            add = TRUE;
        }
    }
    return add;
}