mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.0.1198: older compilers don't know uint8_t
Problem: Older compilers don't know uint8_t. Solution: Use char_u instead.
This commit is contained in:
parent
81b07b527e
commit
00ce63dc23
@ -64,8 +64,8 @@ char_u *get_termcode(int i);
|
|||||||
void del_termcode(char_u *name);
|
void del_termcode(char_u *name);
|
||||||
void set_mouse_topline(win_T *wp);
|
void set_mouse_topline(win_T *wp);
|
||||||
int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen);
|
int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen);
|
||||||
void term_get_fg_color(uint8_t *r, uint8_t *g, uint8_t *b);
|
void term_get_fg_color(char_u *r, char_u *g, char_u *b);
|
||||||
void term_get_bg_color(uint8_t *r, uint8_t *g, uint8_t *b);
|
void term_get_bg_color(char_u *r, char_u *g, char_u *b);
|
||||||
char_u *replace_termcodes(char_u *from, char_u **bufp, int from_part, int do_lt, int special);
|
char_u *replace_termcodes(char_u *from, char_u **bufp, int from_part, int do_lt, int special);
|
||||||
int find_term_bykeys(char_u *src);
|
int find_term_bykeys(char_u *src);
|
||||||
void show_termcodes(void);
|
void show_termcodes(void);
|
||||||
|
@ -3529,7 +3529,7 @@ may_req_bg_color(void)
|
|||||||
{
|
{
|
||||||
int didit = FALSE;
|
int didit = FALSE;
|
||||||
|
|
||||||
#ifdef FEAT_TERMINAL
|
# ifdef FEAT_TERMINAL
|
||||||
/* Only request foreground if t_RF is set. */
|
/* Only request foreground if t_RF is set. */
|
||||||
if (rfg_status == STATUS_GET && *T_RFG != NUL)
|
if (rfg_status == STATUS_GET && *T_RFG != NUL)
|
||||||
{
|
{
|
||||||
@ -3538,7 +3538,7 @@ may_req_bg_color(void)
|
|||||||
rfg_status = STATUS_SENT;
|
rfg_status = STATUS_SENT;
|
||||||
didit = TRUE;
|
didit = TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
# endif
|
||||||
|
|
||||||
/* Only request background if t_RB is set. */
|
/* Only request background if t_RB is set. */
|
||||||
if (rbg_status == STATUS_GET && *T_RBG != NUL)
|
if (rbg_status == STATUS_GET && *T_RBG != NUL)
|
||||||
@ -5833,7 +5833,7 @@ check_termcode(
|
|||||||
* Get the text foreground color, if known.
|
* Get the text foreground color, if known.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
term_get_fg_color(uint8_t *r, uint8_t *g, uint8_t *b)
|
term_get_fg_color(char_u *r, char_u *g, char_u *b)
|
||||||
{
|
{
|
||||||
if (rfg_status == STATUS_GOT)
|
if (rfg_status == STATUS_GOT)
|
||||||
{
|
{
|
||||||
@ -5847,7 +5847,7 @@ term_get_fg_color(uint8_t *r, uint8_t *g, uint8_t *b)
|
|||||||
* Get the text background color, if known.
|
* Get the text background color, if known.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
term_get_bg_color(uint8_t *r, uint8_t *g, uint8_t *b)
|
term_get_bg_color(char_u *r, char_u *g, char_u *b)
|
||||||
{
|
{
|
||||||
if (rbg_status == STATUS_GOT)
|
if (rbg_status == STATUS_GOT)
|
||||||
{
|
{
|
||||||
|
@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1198,
|
||||||
/**/
|
/**/
|
||||||
1197,
|
1197,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user