mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
const in decode_color
This commit is contained in:
parent
3f508a9803
commit
f02e471762
@ -82,7 +82,7 @@ free_colors_lookup(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
decode_color(unsigned char *str, int slen, color_T *color)
|
decode_color(const unsigned char *str, int slen, color_T *color)
|
||||||
{
|
{
|
||||||
if (*str == '#' && (slen == 7 || slen == 4)) {
|
if (*str == '#' && (slen == 7 || slen == 4)) {
|
||||||
unsigned char buffer[7];
|
unsigned char buffer[7];
|
||||||
|
@ -13,7 +13,7 @@ struct color_pair {
|
|||||||
/** Decode the color string.
|
/** Decode the color string.
|
||||||
* The color string can either contain '@#FF0044' style declarations or
|
* The color string can either contain '@#FF0044' style declarations or
|
||||||
* color names. */
|
* color names. */
|
||||||
int decode_color(unsigned char *str, int slen, color_T *color);
|
int decode_color(const unsigned char *str, int slen, color_T *color);
|
||||||
|
|
||||||
/** Returns a string containing the color info. If no 'English' name can be
|
/** Returns a string containing the color info. If no 'English' name can be
|
||||||
* found the hex color (@#rrggbb) is returned in the given buffer. */
|
* found the hex color (@#rrggbb) is returned in the given buffer. */
|
||||||
|
Loading…
Reference in New Issue
Block a user