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).
This commit is contained in:
Ben Harris 2017-07-31 16:21:57 +01:00
parent 00193c98de
commit d67fd2c692

View 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;