mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[plain] More ifdefs to silent compiler
This commit is contained in:
parent
418e74a51b
commit
a5a243546c
@ -245,13 +245,16 @@ decode_esc_color(char *text, int *line_pos, int width,
|
|||||||
struct color_pair color;
|
struct color_pair color;
|
||||||
char *buf, *tail, *begin, *end;
|
char *buf, *tail, *begin, *end;
|
||||||
int k, foreground, background, f1, b1; /* , intensity; */
|
int k, foreground, background, f1, b1; /* , intensity; */
|
||||||
|
|
||||||
|
#ifdef CONFIG_256_COLORS
|
||||||
int foreground256, background256;
|
int foreground256, background256;
|
||||||
|
int was_256 = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
int was_background = 0;
|
int was_background = 0;
|
||||||
int was_foreground = 0;
|
int was_foreground = 0;
|
||||||
|
|
||||||
int was_24 = 0;
|
int was_24 = 0;
|
||||||
int was_256 = 0;
|
|
||||||
|
|
||||||
unsigned char back_red = 0, back_green = 0, back_blue = 0;
|
unsigned char back_red = 0, back_green = 0, back_blue = 0;
|
||||||
unsigned char fore_red = 0, fore_green = 0, fore_blue = 0;
|
unsigned char fore_red = 0, fore_green = 0, fore_blue = 0;
|
||||||
@ -323,11 +326,13 @@ decode_esc_color(char *text, int *line_pos, int width,
|
|||||||
was_background = 0;
|
was_background = 0;
|
||||||
was_24 = 1;
|
was_24 = 1;
|
||||||
continue;
|
continue;
|
||||||
|
#ifdef CONFIG_256_COLORS
|
||||||
case 5:
|
case 5:
|
||||||
background256 = kod;
|
background256 = kod;
|
||||||
was_background = 0;
|
was_background = 0;
|
||||||
was_256 = 1;
|
was_256 = 1;
|
||||||
continue;
|
continue;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
was_background = 0;
|
was_background = 0;
|
||||||
continue;
|
continue;
|
||||||
@ -362,11 +367,13 @@ decode_esc_color(char *text, int *line_pos, int width,
|
|||||||
was_foreground = 0;
|
was_foreground = 0;
|
||||||
was_24 = 1;
|
was_24 = 1;
|
||||||
continue;
|
continue;
|
||||||
|
#ifdef CONFIG_256_COLORS
|
||||||
case 5:
|
case 5:
|
||||||
foreground256 = kod;
|
foreground256 = kod;
|
||||||
was_foreground = 0;
|
was_foreground = 0;
|
||||||
was_256 = 1;
|
was_256 = 1;
|
||||||
continue;
|
continue;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
was_foreground = 0;
|
was_foreground = 0;
|
||||||
continue;
|
continue;
|
||||||
@ -416,7 +423,7 @@ decode_esc_color(char *text, int *line_pos, int width,
|
|||||||
case 44:
|
case 44:
|
||||||
case 45:
|
case 45:
|
||||||
case 46:
|
case 46:
|
||||||
case 47:
|
case 47:
|
||||||
background = kod - 40;
|
background = kod - 40;
|
||||||
break;
|
break;
|
||||||
case 48:
|
case 48:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user