hirc

IRC client
Log | Files | Refs

commit d40c78378b3c5e5ad0fd9ab10de8051df5a26c33
parent f69335a331196583b43484a1d1fef2d791f9e264
Author: hhvn <dev@hhvn.uk>
Date:   Sat, 20 Nov 2021 22:16:22 +0000

config.c hirc.h: make config handler prototypes static

Diffstat:
Mconfig.c | 20++++++++++++++------
Mhirc.h | 6------
2 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/config.c b/config.c @@ -6,6 +6,13 @@ #include <errno.h> #include "hirc.h" +static int config_nicklist_location(long num); +static int config_nicklist_width(long num); +static int config_buflist_location(long num); +static int config_buflist_width(long num); +static int config_nickcolour_self(long num); +static int config_nickcolour_range(long a, long b); + char *valname[] = { [Val_string] = "a string", [Val_bool] = "boolean", @@ -319,7 +326,7 @@ config_read(char *filename) { command_eval(buf); } -int +static int config_nicklist_location(long num) { int i; @@ -344,7 +351,7 @@ config_nicklist_location(long num) { return 0; } -int +static int config_nicklist_width(long num) { if (num <= COLS - (windows[Win_buflist].location ? windows[Win_buflist].w : 0) - 2) { uineedredraw = 1; @@ -355,7 +362,7 @@ config_nicklist_width(long num) { return 0; } -int +static int config_buflist_location(long num) { int i; @@ -379,7 +386,8 @@ config_buflist_location(long num) { return 0; } -int + +static int config_buflist_width(long num) { if (num <= COLS - (windows[Win_nicklist].location ? windows[Win_nicklist].w : 0) - 2) { uineedredraw = 1; @@ -390,13 +398,13 @@ config_buflist_width(long num) { return 0; } -int +static int config_nickcolour_self(long num) { windows[Win_nicklist].refresh = 1; return 1; } -int +static int config_nickcolour_range(long a, long b) { windows[Win_nicklist].refresh = 1; return 1; diff --git a/hirc.h b/hirc.h @@ -134,12 +134,6 @@ void config_setl(char *name, long num); void config_sets(char *name, char *str); void config_setr(char *name, long a, long b); void config_read(char *filename); -int config_nicklist_location(long num); -int config_nicklist_width(long num); -int config_buflist_location(long num); -int config_buflist_width(long num); -int config_nickcolour_self(long num); -int config_nickcolour_range(long a, long b); /* main.c */ extern struct Server *servers;