Analyser/AnalyseHeaderType [ Functions ]
FUNCTION
Determine the type of the header.
SYNOPSIS
struct RB_HeaderType *AnalyseHeaderType( char **cur_char, int *is_internal )
INPUTS
- cur_char -- pointer to the header type character
OUTPUT
- is_internal -- indicates if it is an internal header or not.*
- cur_char -- points to the header type character
RESULT
- pointer to a RB_HeaderType
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; }