HeaderTypes/Works_Like_SourceItem [ Functions ]
FUNCTION
Tells wether this item works similar to the source item, that is weather it copies it's content verbatim to the output document. SYNPOPSIS
INPUTS
item_type -- Type of item (also the index to the item name)
RESULT
TRUE -- Item works like a SOURCE item FALSE -- Item does NOT work like a SOURCE item
SOURCE
{ unsigned int i; // Check if it is a SOURCE item if ( item_type == SOURCECODE_ITEM ) { return TRUE; } // Lookup if it works like a SOURCE item for ( i = 0; i < configuration.source_items.number; ++i ) { if ( !strcmp ( configuration.source_items.names[i], configuration.items.names[item_type] ) ) { return TRUE; } } // Neither SOURCE item, nor works like it return FALSE; }