From: Ben Harris Date: Mon, 31 Jul 2017 15:21:57 +0000 (+0100) Subject: No more global-scoped functions or variables. X-Git-Tag: bedstead-002.000~117 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=d67fd2c69201e0110818664e0ba68ef874b1f552;p=bedstead.git No more global-scoped functions or variables. Apart from main(), of course. Everything else is now file-scoped at most. This is more consistent, and might allow for more optimisations (if I ever used -O). --- diff --git a/bedstead.c b/bedstead.c index c984bc1..7f25cbe 100644 --- a/bedstead.c +++ b/bedstead.c @@ -189,14 +189,14 @@ struct param const *param = ¶ms[0]; #define XQTR_S (XPIX_S/4) #define YQTR_S (YPIX_S/4) -void doprologue(void); -void dochar(char const data[YSIZE], unsigned flags); +static void doprologue(void); +static void dochar(char const data[YSIZE], unsigned flags); static void dochar_plotter(char const data[YSIZE], unsigned flags); static void domosaic(unsigned code, bool sep); static void dopanose(void); static void glyph_complement(void); -struct glyph { +static struct glyph { char data[YSIZE]; int unicode; char const *name; @@ -1907,7 +1907,7 @@ whitepixel(int x, int y, int bl, int br, int tr, int tl) } } -void +static void dochar(char const data[YSIZE], unsigned flags) { int x, y;