1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

In extract_color() and get_color(), make names of variables more explicit.

c -> attribute
r -> retval
at -> value
This commit is contained in:
Laurent MONIN 2007-10-15 12:26:19 +02:00
parent a1125df95f
commit 31d8ffc578

View File

@ -52,28 +52,28 @@
static int static int
extract_color(struct html_context *html_context, unsigned char *a, extract_color(struct html_context *html_context, unsigned char *a,
unsigned char *c, color_T *rgb) unsigned char *attribute, color_T *rgb)
{ {
unsigned char *at; unsigned char *value;
int r; int retval;
at = get_attr_val(a, c, html_context->doc_cp); value = get_attr_val(a, attribute, html_context->doc_cp);
if (!at) return -1; if (!value) return -1;
r = decode_color(at, strlen(at), rgb); retval = decode_color(value, strlen(value), rgb);
mem_free(at); mem_free(value);
return r; return retval;
} }
int int
get_color(struct html_context *html_context, unsigned char *a, get_color(struct html_context *html_context, unsigned char *a,
unsigned char *c, color_T *rgb) unsigned char *attribute, color_T *rgb)
{ {
if (!use_document_fg_colors(html_context->options)) if (!use_document_fg_colors(html_context->options))
return -1; return -1;
return extract_color(html_context, a, c, rgb); return extract_color(html_context, a, attribute, rgb);
} }
int int