Analyser/AnalyseHeaderType [ Functions ]

FUNCTION

Determine the type of the header.

SYNOPSIS

struct RB_HeaderType *AnalyseHeaderType(
    char **cur_char,
    int *is_internal )

INPUTS

OUTPUT

RESULT

SOURCE

{
    struct RB_HeaderType *headertype = 0;

    *is_internal = RB_IsInternalHeader( **cur_char );

    if ( *is_internal )
    {
        /* Skip the character */
        ++( *cur_char );
    }
    headertype = RB_FindHeaderType( **cur_char );
    if ( !headertype )
    {
        RB_Panic( "Undefined headertype (%c)\n", **cur_char );
    }

    return headertype;
}