1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

More anonymous structures were named.

This commit is contained in:
Laurent MONIN 2007-10-12 16:24:41 +02:00
parent 78270c2ac3
commit f8cdb5d472
3 changed files with 28 additions and 23 deletions

View File

@ -198,20 +198,22 @@ lookup_cmd(struct option *o, unsigned char ***argv, int *argc)
#define skipback_whitespace(start, S) \
while ((start) < (S) && isspace((S)[-1])) (S)--;
struct remote_method {
unsigned char *name;
enum {
REMOTE_METHOD_OPENURL,
REMOTE_METHOD_PING,
REMOTE_METHOD_XFEDOCOMMAND,
REMOTE_METHOD_ADDBOOKMARK,
REMOTE_METHOD_INFOBOX,
REMOTE_METHOD_NOT_SUPPORTED,
} type;
};
static unsigned char *
remote_cmd(struct option *o, unsigned char ***argv, int *argc)
{
struct {
unsigned char *name;
enum {
REMOTE_METHOD_OPENURL,
REMOTE_METHOD_PING,
REMOTE_METHOD_XFEDOCOMMAND,
REMOTE_METHOD_ADDBOOKMARK,
REMOTE_METHOD_INFOBOX,
REMOTE_METHOD_NOT_SUPPORTED,
} type;
} remote_methods[] = {
struct remote_method remote_methods[] = {
{ "openURL", REMOTE_METHOD_OPENURL },
{ "ping", REMOTE_METHOD_PING },
{ "addBookmark", REMOTE_METHOD_ADDBOOKMARK },

View File

@ -16,12 +16,14 @@ enum text_style_format {
AT_PREFORMATTED = 32,
};
struct text_style_color {
color_T fg;
color_T bg;
};
struct text_style {
enum text_style_format attr;
struct {
color_T fg;
color_T bg;
} color;
struct text_style_color color;
};
#define INIT_TEXT_STYLE(attr, fg, bg) { attr, {fg, bg}}

View File

@ -23,6 +23,14 @@ enum html_special_type;
/* XXX: This is just terible - this interface is from 75% only for other HTML
* files - there's lack of any well defined interface and it's all randomly
* mixed up :/. */
struct text_attrib_color {
color_T clink;
color_T vlink;
#ifdef CONFIG_BOOKMARKS
color_T bookmark_link;
#endif
color_T image_link;
};
struct text_attrib {
struct text_style style;
@ -34,14 +42,7 @@ struct text_attrib {
unsigned char *title;
struct form_control *form;
struct {
color_T clink;
color_T vlink;
#ifdef CONFIG_BOOKMARKS
color_T bookmark_link;
#endif
color_T image_link;
} color;
struct text_attrib_color color;
#ifdef CONFIG_CSS
/* Bug 766: CSS speedup. 56% of CPU time was going to