mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05: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;
|
||||
}
|
||||
|
||||
/* 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user