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

parse_table(): optimize even more using @closing_tag.

This commit is contained in:
Laurent MONIN 2005-12-06 15:19:44 +01:00 committed by Laurent MONIN
parent b63dd28500
commit 29a80ce4eb

View File

@ -688,8 +688,11 @@ see:
}
}
/* Beyond that point, opening tags only. */
if (closing_tag) goto see;
/* TR */
if (!closing_tag && namelen == 2 && toupper(name[1]) == 'R') {
if (namelen == 2 && toupper(name[1]) == 'R') {
if (c_span) new_columns(table, c_span, c_width, c_al, c_val, 1);
if (in_cell) {
@ -714,7 +717,7 @@ see:
}
/* THEAD TBODY TFOOT */
if (!closing_tag && namelen == 5
if (namelen == 5
&& ((!strlcasecmp(&name[1], namelen - 1, "HEAD", 4)) ||
(!strlcasecmp(&name[1], namelen - 1, "BODY", 4)) ||
(!strlcasecmp(&name[1], namelen - 1, "FOOT", 4)))) {
@ -726,7 +729,6 @@ see:
}
/* TD TH */
if (closing_tag) goto see;
if (namelen != 2) goto see;
if (toupper(name[1]) != 'D'