openbsd-ports/www/links+/patches/patch-html_c

38 lines
1.4 KiB
Plaintext

$OpenBSD: patch-html_c,v 1.4 2003/04/07 19:30:21 fgsch Exp $
--- html.c.orig Tue Feb 11 18:55:00 2003
+++ html.c Fri Apr 4 00:16:18 2003
@@ -799,6 +799,7 @@ void html_a(unsigned char *a)
format.target = stracpy(format.target_base);
}
/*format.attr ^= AT_BOLD;*/
+ format.attr |= AT_UNDERLINE;
memcpy(&format.fg, &format.clink, sizeof(struct rgb));
} else if (!ev) kill_html_stack_item(&html_top);
if ((al = get_attr_val(a, "name"))) {
@@ -1663,7 +1664,7 @@ void new_menu_item(unsigned char *name,
item->rtext = data == -1 ? ">" : "";
item->hotkey = fullname ? "\000\001" : "\000\000"; /* dirty */
item->func = data == -1 ? MENU_FUNC do_select_submenu : MENU_FUNC selected_item;
- item->data = data == -1 ? nmenu : (void *)data;
+ item->data = data == -1 ? nmenu : (void *)(intptr_t)data;
item->in_m = data == -1 ? 1 : 0;
item->free_i = 0;
item++;
@@ -1723,14 +1724,14 @@ void menu_labels(struct menu_item *m, un
}
} else {
if ((bs = stracpy(m->hotkey[1] ? (unsigned char *)"" : base))) add_to_strn(&bs, m->text);
- lbls[(int)m->data] = bs;
+ lbls[(intptr_t)m->data] = bs;
}
}
}
int menu_contains(struct menu_item *m, int f)
{
- if (m->func != MENU_FUNC do_select_submenu) return (int)m->data == f;
+ if (m->func != MENU_FUNC do_select_submenu) return (intptr_t)m->data == f;
for (m = m->data; m->text; m++) if (menu_contains(m, f)) return 1;
return 0;
}