diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-07-25 21:34:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-07-25 21:34:46 +0200 |
commit | b2a76ec06bb1130cfb632bdfef64e479fa55dd5c (patch) | |
tree | 42527fd8fe944b251a85a3045166549554b46187 /src/libvterm/src | |
parent | 1c84493bbeda1d58b70e9b2b7723ce92fb2a49d4 (diff) | |
download | vim-git-b2a76ec06bb1130cfb632bdfef64e479fa55dd5c.tar.gz |
patch 8.0.0772: other stdbool.h dependencies in libvtermv8.0.0772
Problem: Other stdbool.h dependencies in libvterm.
Solution: Remove the dependency and use TRUE/FALSE/int. (Ken Takata)
Diffstat (limited to 'src/libvterm/src')
-rw-r--r-- | src/libvterm/src/mouse.c | 2 | ||||
-rw-r--r-- | src/libvterm/src/pen.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/libvterm/src/mouse.c b/src/libvterm/src/mouse.c index 9962e4f55..ba17aa466 100644 --- a/src/libvterm/src/mouse.c +++ b/src/libvterm/src/mouse.c @@ -70,7 +70,7 @@ void vterm_mouse_move(VTerm *vt, int row, int col, VTermModifier mod) } } -void vterm_mouse_button(VTerm *vt, int button, bool pressed, VTermModifier mod) +void vterm_mouse_button(VTerm *vt, int button, int pressed, VTermModifier mod) { VTermState *state = vt->state; diff --git a/src/libvterm/src/pen.c b/src/libvterm/src/pen.c index d7ea9b114..81987f6bc 100644 --- a/src/libvterm/src/pen.c +++ b/src/libvterm/src/pen.c @@ -33,17 +33,17 @@ static int ramp24[] = { 0x85, 0x90, 0x9B, 0xA6, 0xB1, 0xBC, 0xC7, 0xD2, 0xDD, 0xE8, 0xF3, 0xFF, }; -static bool lookup_colour_ansi(const VTermState *state, long index, VTermColor *col) +static int lookup_colour_ansi(const VTermState *state, long index, VTermColor *col) { if(index >= 0 && index < 16) { *col = state->colors[index]; - return true; + return TRUE; } - return false; + return FALSE; } -static bool lookup_colour_palette(const VTermState *state, long index, VTermColor *col) +static int lookup_colour_palette(const VTermState *state, long index, VTermColor *col) { if(index >= 0 && index < 16) { /* Normal 8 colours or high intensity - parse as palette 0 */ @@ -57,7 +57,7 @@ static bool lookup_colour_palette(const VTermState *state, long index, VTermColo col->green = ramp6[index/6 % 6]; col->red = ramp6[index/6/6 % 6]; - return true; + return TRUE; } else if(index >= 232 && index < 256) { /* 24 greyscales */ @@ -67,10 +67,10 @@ static bool lookup_colour_palette(const VTermState *state, long index, VTermColo col->green = ramp24[index]; col->red = ramp24[index]; - return true; + return TRUE; } - return false; + return FALSE; } static int lookup_colour(const VTermState *state, int palette, const long args[], int argcount, VTermColor *col, int *index) |