Bug #1599
Modification in variation_variable_declarations to change the return values of the function for some cases of headers
0%
Description
variation_variable_declarations function is responsible for generating header variants for headers which follow the format "data_type_1 (data_type_2..data_type_n) variable_name". This function returns a special flag called variable_flag. If this flag is TRUE, it means that the header variant has been processed by this function and we must NOT process it using any other header variation function.
This flag is only turned TRUE when the variable_name exists outside the 20K common word list and we need to modify this.
Changes are as follows:
Part A.1. If the header follows the above format and is a subsection header then if the header variant is within the 20K common word list, do NOT add any header variant from this header.
E.g. int isolated, int inspect
Part B.1. If the header follows the above format, irrespective of whether variable_name is within 20K words or not, we need to ensure that the entire header (i.e. the original form) is NOT added to the header variants list for which KPs are to be searched.