mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
Reduce usage of anonymous structures.
Naming them may ease things (ie. debug).
This commit is contained in:
parent
e2a5696f76
commit
78270c2ac3
@ -9,20 +9,41 @@
|
|||||||
struct session;
|
struct session;
|
||||||
|
|
||||||
/** Active link coloring options */
|
/** Active link coloring options */
|
||||||
|
struct active_link_options_colors {
|
||||||
|
color_T foreground;
|
||||||
|
color_T background;
|
||||||
|
};
|
||||||
|
|
||||||
struct active_link_options {
|
struct active_link_options {
|
||||||
unsigned int enable_color:1;
|
unsigned int enable_color:1;
|
||||||
unsigned int underline:1;
|
unsigned int underline:1;
|
||||||
unsigned int bold:1;
|
unsigned int bold:1;
|
||||||
unsigned int invert:1;
|
unsigned int invert:1;
|
||||||
struct {
|
struct active_link_options_colors color;
|
||||||
color_T foreground;
|
|
||||||
color_T background;
|
|
||||||
} color;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** This mostly acts as a option cache so rendering will be faster. However it
|
/** This mostly acts as a option cache so rendering will be faster. However it
|
||||||
* is also used to validate and invalidate documents in the format cache as to
|
* is also used to validate and invalidate documents in the format cache as to
|
||||||
* whether they satisfy the current state of the document options. */
|
* whether they satisfy the current state of the document options. */
|
||||||
|
struct document_options_colors {
|
||||||
|
color_T link;
|
||||||
|
color_T vlink;
|
||||||
|
#ifdef CONFIG_BOOKMARKS
|
||||||
|
color_T bookmark_link;
|
||||||
|
#endif
|
||||||
|
color_T image_link;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct document_options_image_link {
|
||||||
|
unsigned char *prefix;
|
||||||
|
unsigned char *suffix;
|
||||||
|
int filename_maxlen;
|
||||||
|
int label_maxlen;
|
||||||
|
int display_style;
|
||||||
|
int tagging;
|
||||||
|
unsigned int show_any_as_links:1;
|
||||||
|
};
|
||||||
|
|
||||||
struct document_options {
|
struct document_options {
|
||||||
enum color_mode color_mode;
|
enum color_mode color_mode;
|
||||||
/** cp is the codepage for which the document is being formatted;
|
/** cp is the codepage for which the document is being formatted;
|
||||||
@ -38,14 +59,7 @@ struct document_options {
|
|||||||
/** @name The default (fallback) colors.
|
/** @name The default (fallback) colors.
|
||||||
* @{ */
|
* @{ */
|
||||||
struct text_style default_style;
|
struct text_style default_style;
|
||||||
struct {
|
struct document_options_colors default_color;
|
||||||
color_T link;
|
|
||||||
color_T vlink;
|
|
||||||
#ifdef CONFIG_BOOKMARKS
|
|
||||||
color_T bookmark_link;
|
|
||||||
#endif
|
|
||||||
color_T image_link;
|
|
||||||
} default_color;
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/** Color model/optimizations */
|
/** Color model/optimizations */
|
||||||
@ -130,15 +144,7 @@ struct document_options {
|
|||||||
struct active_link_options active_link;
|
struct active_link_options active_link;
|
||||||
|
|
||||||
/** Options related with IMG tag */
|
/** Options related with IMG tag */
|
||||||
struct {
|
struct document_options_image_link image_link;
|
||||||
unsigned char *prefix;
|
|
||||||
unsigned char *suffix;
|
|
||||||
int filename_maxlen;
|
|
||||||
int label_maxlen;
|
|
||||||
int display_style;
|
|
||||||
int tagging;
|
|
||||||
unsigned int show_any_as_links:1;
|
|
||||||
} image_link;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Fills the structure with values from the option system.
|
/** Fills the structure with values from the option system.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user