1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-14 14:44:32 -04:00

t_name -> name, t_namelen -> namelen.

This commit is contained in:
Laurent MONIN 2005-12-08 16:13:21 +01:00 committed by Laurent MONIN
parent 5f66f98b66
commit ae00f391f2

View File

@ -335,8 +335,8 @@ do_html_select(unsigned char *attr, unsigned char *html,
struct string lbl = NULL_STRING, orig_lbl = NULL_STRING; struct string lbl = NULL_STRING, orig_lbl = NULL_STRING;
unsigned char **values = NULL; unsigned char **values = NULL;
unsigned char **labels; unsigned char **labels;
unsigned char *t_name, *t_attr, *en; unsigned char *name, *t_attr, *en;
int t_namelen; int namelen;
int nnmi = 0; int nnmi = 0;
int order = 0; int order = 0;
int preselect = -1; int preselect = -1;
@ -389,22 +389,22 @@ abort:
goto se; goto se;
} }
if (parse_element(html, eof, &t_name, &t_namelen, &t_attr, &en)) { if (parse_element(html, eof, &name, &namelen, &t_attr, &en)) {
html++; html++;
goto se; goto se;
} }
if (!strlcasecmp(t_name, t_namelen, "/SELECT", 7)) { if (!strlcasecmp(name, namelen, "/SELECT", 7)) {
add_select_item(&lnk_menu, &lbl, &orig_lbl, values, order, nnmi); add_select_item(&lnk_menu, &lbl, &orig_lbl, values, order, nnmi);
goto end_parse; goto end_parse;
} }
if (!strlcasecmp(t_name, t_namelen, "/OPTION", 7)) { if (!strlcasecmp(name, namelen, "/OPTION", 7)) {
add_select_item(&lnk_menu, &lbl, &orig_lbl, values, order, nnmi); add_select_item(&lnk_menu, &lbl, &orig_lbl, values, order, nnmi);
goto see; goto see;
} }
if (!strlcasecmp(t_name, t_namelen, "OPTION", 6)) { if (!strlcasecmp(name, namelen, "OPTION", 6)) {
unsigned char *value, *label; unsigned char *value, *label;
add_select_item(&lnk_menu, &lbl, &orig_lbl, values, order, nnmi); add_select_item(&lnk_menu, &lbl, &orig_lbl, values, order, nnmi);
@ -430,14 +430,14 @@ abort:
goto see; goto see;
} }
if (!strlcasecmp(t_name, t_namelen, "OPTGROUP", 8) if (!strlcasecmp(name, namelen, "OPTGROUP", 8)
|| !strlcasecmp(t_name, t_namelen, "/OPTGROUP", 9)) { || !strlcasecmp(name, namelen, "/OPTGROUP", 9)) {
add_select_item(&lnk_menu, &lbl, &orig_lbl, values, order, nnmi); add_select_item(&lnk_menu, &lbl, &orig_lbl, values, order, nnmi);
if (group) new_menu_item(&lnk_menu, NULL, -1, 0), group = 0; if (group) new_menu_item(&lnk_menu, NULL, -1, 0), group = 0;
} }
if (!strlcasecmp(t_name, t_namelen, "OPTGROUP", 8)) { if (!strlcasecmp(name, namelen, "OPTGROUP", 8)) {
unsigned char *label; unsigned char *label;
label = get_attr_val(t_attr, "label", html_context->options); label = get_attr_val(t_attr, "label", html_context->options);