dfa.c (flex-2.6.3) | : | dfa.c (flex-2.6.4) | ||
---|---|---|---|---|
skipping to change at line 458 | skipping to change at line 458 | |||
if (!fullspd && ecgroup[0] == numecs) { | if (!fullspd && ecgroup[0] == numecs) { | |||
/* NUL is alone in its equivalence class, which is the | /* NUL is alone in its equivalence class, which is the | |||
* last one. | * last one. | |||
*/ | */ | |||
int use_NUL_table = (numecs == csize); | int use_NUL_table = (numecs == csize); | |||
if (fulltbl && !use_NUL_table) { | if (fulltbl && !use_NUL_table) { | |||
/* We still may want to use the table if numecs | /* We still may want to use the table if numecs | |||
* is a power of 2. | * is a power of 2. | |||
*/ | */ | |||
int power_of_two; | if (numecs <= csize && is_power_of_2(numecs)) { | |||
use_NUL_table = true; | ||||
for (power_of_two = 1; power_of_two <= csize; | } | |||
power_of_two *= 2) | ||||
if (numecs == power_of_two) { | ||||
use_NUL_table = true; | ||||
break; | ||||
} | ||||
} | } | |||
if (use_NUL_table) | if (use_NUL_table) | |||
nultrans = | nultrans = | |||
allocate_integer_array (current_max_dfas); | allocate_integer_array (current_max_dfas); | |||
/* From now on, nultrans != nil indicates that we're | /* From now on, nultrans != nil indicates that we're | |||
* saving null transitions for later, separate encoding. | * saving null transitions for later, separate encoding. | |||
*/ | */ | |||
} | } | |||
End of changes. 1 change blocks. | ||||
8 lines changed or deleted | 3 lines changed or added |