1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00

parse_table(): reorder code to optimize even more.

This commit is contained in:
Laurent MONIN 2005-12-06 15:07:49 +01:00 committed by Laurent MONIN
parent b6c54846ad
commit 975a4251e8

View File

@ -670,9 +670,11 @@ see:
goto see;
}
/* All following tags have T as first letter. */
if (toupper(name[0]) != 'T') goto see;
/* /TR /TD /TH */
if (closing_tag && namelen == 2
&& toupper(name[0]) == 'T') {
if (closing_tag && namelen == 2) {
unsigned char c = toupper(name[1]);
if (c == 'R' || c == 'D' || c == 'H') {
@ -688,9 +690,6 @@ see:
}
}
/* All following tags have T as first letter. */
if (toupper(t_name[0]) != 'T') goto see;
/* TR */
if (t_namelen == 2 && toupper(t_name[1]) == 'R') {
if (c_span) new_columns(table, c_span, c_width, c_al, c_val, 1);