comparison src/term.c @ 13839:ca8953d36264 v8.0.1791

patch 8.0.1791: using uint8_t does not work everywhere commit https://github.com/vim/vim/commit/9894e394b230723abefc05a1c9a336b05a63088b Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 5 14:29:06 2018 +0200 patch 8.0.1791: using uint8_t does not work everywhere Problem: Using uint8_t does not work everywhere. Solution: Use char_u instead.
author Christian Brabandt <cb@256bit.org>
date Sat, 05 May 2018 14:30:06 +0200
parents 27e09f1a8e5c
children 9d3ddfa88a56
comparison
equal deleted inserted replaced
13838:510d2d6512d8 13839:ca8953d36264
6979 # include "libvterm/include/vterm.h" // for VTERM_ANSI_INDEX_NONE 6979 # include "libvterm/include/vterm.h" // for VTERM_ANSI_INDEX_NONE
6980 # else 6980 # else
6981 # define VTERM_ANSI_INDEX_NONE 0 6981 # define VTERM_ANSI_INDEX_NONE 0
6982 # endif 6982 # endif
6983 6983
6984 static uint8_t ansi_table[16][4] = { 6984 static char_u ansi_table[16][4] = {
6985 // R G B idx 6985 // R G B idx
6986 { 0, 0, 0, 1}, // black 6986 { 0, 0, 0, 1}, // black
6987 {224, 0, 0, 2}, // dark red 6987 {224, 0, 0, 2}, // dark red
6988 { 0, 224, 0, 3}, // dark green 6988 { 0, 224, 0, 3}, // dark green
6989 {224, 224, 0, 4}, // dark yellow / brown 6989 {224, 224, 0, 4}, // dark yellow / brown
7001 { 64, 255, 255, 15}, // light cyan 7001 { 64, 255, 255, 15}, // light cyan
7002 {255, 255, 255, 16}, // white 7002 {255, 255, 255, 16}, // white
7003 }; 7003 };
7004 7004
7005 void 7005 void
7006 cterm_color2rgb(int nr, uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *ansi_idx) 7006 cterm_color2rgb(int nr, char_u *r, char_u *g, char_u *b, char_u *ansi_idx)
7007 { 7007 {
7008 int idx; 7008 int idx;
7009 7009
7010 if (nr < 16) 7010 if (nr < 16)
7011 { 7011 {