From ee47eaceaa148e07b566ff420f9a3c2edde2fa34 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Wed, 29 Jun 2022 12:55:36 +0100 Subject: 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) --- src/highlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/highlight.c') diff --git a/src/highlight.c b/src/highlight.c index 75a310f53e..bf876d16f1 100644 --- a/src/highlight.c +++ b/src/highlight.c @@ -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]; -- cgit v1.2.3