Mercurial > vim
comparison src/term.c @ 12640:a715f0b44532 v8.0.1198
patch 8.0.1198: older compilers don't know uint8_t
commit https://github.com/vim/vim/commit/00ce63dc230b6c8f55997b09396aee6d6d722734
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 15 21:44:45 2017 +0200
patch 8.0.1198: older compilers don't know uint8_t
Problem: Older compilers don't know uint8_t.
Solution: Use char_u instead.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 15 Oct 2017 21:45:05 +0200 |
parents | 94566ecb55f0 |
children | 351cf7c67bbe |
comparison
equal
deleted
inserted
replaced
12639:51380c0868e3 | 12640:a715f0b44532 |
---|---|
3527 { | 3527 { |
3528 if (can_get_termresponse() && starting == 0) | 3528 if (can_get_termresponse() && starting == 0) |
3529 { | 3529 { |
3530 int didit = FALSE; | 3530 int didit = FALSE; |
3531 | 3531 |
3532 #ifdef FEAT_TERMINAL | 3532 # ifdef FEAT_TERMINAL |
3533 /* Only request foreground if t_RF is set. */ | 3533 /* Only request foreground if t_RF is set. */ |
3534 if (rfg_status == STATUS_GET && *T_RFG != NUL) | 3534 if (rfg_status == STATUS_GET && *T_RFG != NUL) |
3535 { | 3535 { |
3536 LOG_TR("Sending FG request"); | 3536 LOG_TR("Sending FG request"); |
3537 out_str(T_RFG); | 3537 out_str(T_RFG); |
3538 rfg_status = STATUS_SENT; | 3538 rfg_status = STATUS_SENT; |
3539 didit = TRUE; | 3539 didit = TRUE; |
3540 } | 3540 } |
3541 #endif | 3541 # endif |
3542 | 3542 |
3543 /* Only request background if t_RB is set. */ | 3543 /* Only request background if t_RB is set. */ |
3544 if (rbg_status == STATUS_GET && *T_RBG != NUL) | 3544 if (rbg_status == STATUS_GET && *T_RBG != NUL) |
3545 { | 3545 { |
3546 LOG_TR("Sending BG request"); | 3546 LOG_TR("Sending BG request"); |
5831 #if (defined(FEAT_TERMINAL) && defined(FEAT_TERMRESPONSE)) || defined(PROTO) | 5831 #if (defined(FEAT_TERMINAL) && defined(FEAT_TERMRESPONSE)) || defined(PROTO) |
5832 /* | 5832 /* |
5833 * Get the text foreground color, if known. | 5833 * Get the text foreground color, if known. |
5834 */ | 5834 */ |
5835 void | 5835 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) |
5837 { | 5837 { |
5838 if (rfg_status == STATUS_GOT) | 5838 if (rfg_status == STATUS_GOT) |
5839 { | 5839 { |
5840 *r = fg_r; | 5840 *r = fg_r; |
5841 *g = fg_g; | 5841 *g = fg_g; |
5845 | 5845 |
5846 /* | 5846 /* |
5847 * Get the text background color, if known. | 5847 * Get the text background color, if known. |
5848 */ | 5848 */ |
5849 void | 5849 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) |
5851 { | 5851 { |
5852 if (rbg_status == STATUS_GOT) | 5852 if (rbg_status == STATUS_GOT) |
5853 { | 5853 { |
5854 *r = bg_r; | 5854 *r = bg_r; |
5855 *g = bg_g; | 5855 *g = bg_g; |