mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
parse_table(): reorder code to optimize even more.
This commit is contained in:
parent
b6c54846ad
commit
975a4251e8
@ -670,9 +670,11 @@ see:
|
|||||||
goto see;
|
goto see;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* All following tags have T as first letter. */
|
||||||
|
if (toupper(name[0]) != 'T') goto see;
|
||||||
|
|
||||||
/* /TR /TD /TH */
|
/* /TR /TD /TH */
|
||||||
if (closing_tag && namelen == 2
|
if (closing_tag && namelen == 2) {
|
||||||
&& toupper(name[0]) == 'T') {
|
|
||||||
unsigned char c = toupper(name[1]);
|
unsigned char c = toupper(name[1]);
|
||||||
|
|
||||||
if (c == 'R' || c == 'D' || c == 'H') {
|
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 */
|
/* TR */
|
||||||
if (t_namelen == 2 && toupper(t_name[1]) == 'R') {
|
if (t_namelen == 2 && toupper(t_name[1]) == 'R') {
|
||||||
if (c_span) new_columns(table, c_span, c_width, c_al, c_val, 1);
|
if (c_span) new_columns(table, c_span, c_width, c_al, c_val, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user