Mercurial > vim
comparison src/message.c @ 14862:27b9a84395b5 v8.1.0443
patch 8.1.0443: unnecessary static function prototypes
commit https://github.com/vim/vim/commit/6dff58f15cede9139b2fcfc64c9064326ea3d3b0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 30 21:43:26 2018 +0200
patch 8.1.0443: unnecessary static function prototypes
Problem: Unnecessary static function prototypes.
Solution: Remove unnecessary prototypes.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 30 Sep 2018 21:45:07 +0200 |
parents | 487d7bda80ea |
children | c97b4b537572 |
comparison
equal
deleted
inserted
replaced
14861:41fbdae837df | 14862:27b9a84395b5 |
---|---|
14 #define MESSAGE_FILE /* don't include prototype for smsg() */ | 14 #define MESSAGE_FILE /* don't include prototype for smsg() */ |
15 #define USING_FLOAT_STUFF | 15 #define USING_FLOAT_STUFF |
16 | 16 |
17 #include "vim.h" | 17 #include "vim.h" |
18 | 18 |
19 static int other_sourcing_name(void); | |
20 static char_u *get_emsg_source(void); | |
21 static char_u *get_emsg_lnum(void); | |
22 static void add_msg_hist(char_u *s, int len, int attr); | 19 static void add_msg_hist(char_u *s, int len, int attr); |
23 static void hit_return_msg(void); | 20 static void hit_return_msg(void); |
24 static void msg_home_replace_attr(char_u *fname, int attr); | 21 static void msg_home_replace_attr(char_u *fname, int attr); |
25 #ifdef FEAT_MBYTE | |
26 static char_u *screen_puts_mbyte(char_u *s, int l, int attr); | |
27 #endif | |
28 static void msg_puts_attr_len(char_u *str, int maxlen, int attr); | 22 static void msg_puts_attr_len(char_u *str, int maxlen, int attr); |
29 static void msg_puts_display(char_u *str, int maxlen, int attr, int recurse); | 23 static void msg_puts_display(char_u *str, int maxlen, int attr, int recurse); |
30 static void msg_scroll_up(void); | 24 static void msg_scroll_up(void); |
31 static void inc_msg_scrolled(void); | 25 static void inc_msg_scrolled(void); |
32 static void store_sb_text(char_u **sb_str, char_u *s, int attr, int *sb_col, int finish); | 26 static void store_sb_text(char_u **sb_str, char_u *s, int attr, int *sb_col, int finish); |
2405 }; | 2399 }; |
2406 | 2400 |
2407 static msgchunk_T *last_msgchunk = NULL; /* last displayed text */ | 2401 static msgchunk_T *last_msgchunk = NULL; /* last displayed text */ |
2408 | 2402 |
2409 static msgchunk_T *msg_sb_start(msgchunk_T *mps); | 2403 static msgchunk_T *msg_sb_start(msgchunk_T *mps); |
2410 static msgchunk_T *disp_sb_line(int row, msgchunk_T *smp); | |
2411 | 2404 |
2412 typedef enum { | 2405 typedef enum { |
2413 SB_CLEAR_NONE = 0, | 2406 SB_CLEAR_NONE = 0, |
2414 SB_CLEAR_ALL, | 2407 SB_CLEAR_ALL, |
2415 SB_CLEAR_CMDLINE_BUSY, | 2408 SB_CLEAR_CMDLINE_BUSY, |
3684 msg_end_prompt(); | 3677 msg_end_prompt(); |
3685 | 3678 |
3686 return retval; | 3679 return retval; |
3687 } | 3680 } |
3688 | 3681 |
3689 static int copy_char(char_u *from, char_u *to, int lowercase); | |
3690 | |
3691 /* | 3682 /* |
3692 * Copy one character from "*from" to "*to", taking care of multi-byte | 3683 * Copy one character from "*from" to "*to", taking care of multi-byte |
3693 * characters. Return the length of the character in bytes. | 3684 * characters. Return the length of the character in bytes. |
3694 */ | 3685 */ |
3695 static int | 3686 static int |
4128 } | 4119 } |
4129 #endif | 4120 #endif |
4130 | 4121 |
4131 #if defined(FEAT_EVAL) | 4122 #if defined(FEAT_EVAL) |
4132 static char *e_printf = N_("E766: Insufficient arguments for printf()"); | 4123 static char *e_printf = N_("E766: Insufficient arguments for printf()"); |
4133 | |
4134 static varnumber_T tv_nr(typval_T *tvs, int *idxp); | |
4135 static char *tv_str(typval_T *tvs, int *idxp, char_u **tofree); | |
4136 # ifdef FEAT_FLOAT | |
4137 static double tv_float(typval_T *tvs, int *idxp); | |
4138 # endif | |
4139 | 4124 |
4140 /* | 4125 /* |
4141 * Get number argument from "idxp" entry in "tvs". First entry is 1. | 4126 * Get number argument from "idxp" entry in "tvs". First entry is 1. |
4142 */ | 4127 */ |
4143 static varnumber_T | 4128 static varnumber_T |