1
0
forked from aniani/vim

patch 9.0.0003: functions are global while they could be local

Problem:    Functions are global while they could be local.
Solution:   Add "static".  Add a few tests. (Yegappan Lakshmanan,
            closes #10612)
This commit is contained in:
Yegappan Lakshmanan
2022-06-29 12:55:36 +01:00
committed by Bram Moolenaar
parent c207fd2535
commit ee47eaceaa
16 changed files with 40 additions and 20 deletions

View File

@@ -566,7 +566,7 @@ static int color_numbers_8[28] = {0, 4, 2, 6,
* "boldp" will be set to TRUE or FALSE for a foreground color when using 8
* colors, otherwise it will be unchanged.
*/
int
static int
lookup_color(int idx, int foreground, int *boldp)
{
int color = color_numbers_16[idx];