Configuration/add_keywords_to_hash_table [ Functions ]

FUNCTION

Initalize hash table and add all keywords from configuration.keywords to the hash table

SOURCE

void add_keywords_to_hash_table(
    void )
{
    unsigned int        i;

    // If nothing to add, exit
    if ( !configuration.keywords.number )
        return;

    // Make some allocations
    allocate_keywords_hash_table(  );

    // Add keywords to hash table
    for ( i = 0; i < configuration.keywords.number; i++ )
    {
        add_to_keywords_hash_table( configuration.keywords.names[i] );
    }
}