HeaderTypes/RB_CompareHeaderTypes [ Functions ]
FUNCTION
Compare two header types and check if they are equal. If one of the header types is a HT_MASTERINDEXTYPE the comparison is always TRUE. (This to make sure that all headers appear in the Index.)
SYNOPSIS
* int RB_CompareHeaderTypes( * struct RB_HeaderType* ht1, struct RB_HeaderType* ht2 )
INPUTS
- ht1 and ht2 -- the header types to compare.
RESULT
- 0 -- header types are not equal
- != 0 -- header type are equal
SOURCE
int RB_CompareHeaderTypes( struct RB_HeaderType *ht1, struct RB_HeaderType *ht2 ) { assert( ht1 ); assert( ht2 ); return ( ht1->typeCharacter == HT_MASTERINDEXTYPE ) || ( ht2->typeCharacter == HT_MASTERINDEXTYPE ) || ( ht1->typeCharacter == ht2->typeCharacter ); }