Skip to content

Commit 00ce63d

Browse files
committed
patch 8.0.1198: older compilers don't know uint8_t
Problem: Older compilers don't know uint8_t. Solution: Use char_u instead.
1 parent 81b07b5 commit 00ce63d

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/proto/term.pro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ char_u *get_termcode(int i);
6464
void del_termcode(char_u *name);
6565
void set_mouse_topline(win_T *wp);
6666
int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen);
67-
void term_get_fg_color(uint8_t *r, uint8_t *g, uint8_t *b);
68-
void term_get_bg_color(uint8_t *r, uint8_t *g, uint8_t *b);
67+
void term_get_fg_color(char_u *r, char_u *g, char_u *b);
68+
void term_get_bg_color(char_u *r, char_u *g, char_u *b);
6969
char_u *replace_termcodes(char_u *from, char_u **bufp, int from_part, int do_lt, int special);
7070
int find_term_bykeys(char_u *src);
7171
void show_termcodes(void);

src/term.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3529,7 +3529,7 @@ may_req_bg_color(void)
35293529
{
35303530
int didit = FALSE;
35313531

3532-
#ifdef FEAT_TERMINAL
3532+
# ifdef FEAT_TERMINAL
35333533
/* Only request foreground if t_RF is set. */
35343534
if (rfg_status == STATUS_GET && *T_RFG != NUL)
35353535
{
@@ -3538,7 +3538,7 @@ may_req_bg_color(void)
35383538
rfg_status = STATUS_SENT;
35393539
didit = TRUE;
35403540
}
3541-
#endif
3541+
# endif
35423542

35433543
/* Only request background if t_RB is set. */
35443544
if (rbg_status == STATUS_GET && *T_RBG != NUL)
@@ -5833,7 +5833,7 @@ check_termcode(
58335833
* Get the text foreground color, if known.
58345834
*/
58355835
void
5836-
term_get_fg_color(uint8_t *r, uint8_t *g, uint8_t *b)
5836+
term_get_fg_color(char_u *r, char_u *g, char_u *b)
58375837
{
58385838
if (rfg_status == STATUS_GOT)
58395839
{
@@ -5847,7 +5847,7 @@ term_get_fg_color(uint8_t *r, uint8_t *g, uint8_t *b)
58475847
* Get the text background color, if known.
58485848
*/
58495849
void
5850-
term_get_bg_color(uint8_t *r, uint8_t *g, uint8_t *b)
5850+
term_get_bg_color(char_u *r, char_u *g, char_u *b)
58515851
{
58525852
if (rbg_status == STATUS_GOT)
58535853
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1198,
764766
/**/
765767
1197,
766768
/**/

0 commit comments

Comments
 (0)