chiark / gitweb /
No more global-scoped functions or variables.
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 31 Jul 2017 15:21:57 +0000 (16:21 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 31 Jul 2017 15:21:57 +0000 (16:21 +0100)
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).

bedstead.c

index c984bc122247315be0c61cf53533f06126d59ec5..7f25cbe6b4c4be0fb6692b128ba68dacef9347d3 100644 (file)
@@ -189,14 +189,14 @@ struct param const *param = &params[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;