ref: d35e4b88e85d9bb4f677083c0808b02f51620c2f
parent: 798f949ca017f3a99b5d0ac90c4506bfcdcd4c48
author: sirjofri <sirjofri@sirjofri.de>
date: Mon May 27 09:23:19 EDT 2024
makes functions "private"
--- a/plan9.c
+++ b/plan9.c
@@ -34,7 +34,7 @@
int logfd = -1;
int logpipe[2];
#define LOG(c) { if (dolog) fprint(logpipe[1], "%s\n", c); }-void
+static void
Log(char *fmt, ...)
{va_list arg;
@@ -83,7 +83,7 @@
SETTINGS = 1,
};
-Font*
+static Font*
findfontfile(int type, int size)
{Font *f;
@@ -107,7 +107,7 @@
return font;
}
-Font*
+static Font*
findfont(frontend *fe, int type, int size)
{Ft *n;
@@ -179,7 +179,7 @@
}
#endif
-void
+static void
usage(void)
{fprint(2, "usage: %s [-hl]\n", argv0);
@@ -395,7 +395,7 @@
return fe;
}
-void
+static void
initui(Controlset *cs, Channel *c)
{Control *b_game, *b_settings;
@@ -429,7 +429,7 @@
activate(b_settings);
}
-void
+static void
initfe(frontend *fe, Mousectl *mousectl)
{float *colors;
@@ -465,7 +465,7 @@
int windowset = 0;
-Point
+static Point
resize(int *resizenop)
{int x, y, fd;
@@ -547,7 +547,7 @@
Option options[32];
-Option*
+static Option*
findoption(char *name)
{Option *o;
@@ -557,7 +557,7 @@
return nil;
}
-Option*
+static Option*
findoptionname(char *ctl)
{Option *o;
@@ -567,7 +567,7 @@
return nil;
}
-void
+static void
clearoptions(void)
{ for (Option *o = options; o->name; o++) {@@ -584,7 +584,7 @@
}
}
-void
+static void
addoption(config_item *cfg)
{char buf[8];
@@ -644,7 +644,7 @@
int configcats[] = { CFG_SETTINGS, /* CFG_SEED, */ CFG_PREFS }; config_item *configs[] = { nil, /* nil, */ nil };-void
+static void
loadoptions(void)
{char *t;
@@ -697,9 +697,9 @@
chanprint(fe->cs->ctl, "c_settings add b_savecfg");
}
-void setoption(char *name, char *value, config_item *conf);
+static void setoption(char *name, char *value, config_item *conf);
-void
+static void
readoptions(void)
{char *val;
@@ -720,7 +720,7 @@
}
}
-int
+static int
saveoptions(void)
{char *s;
@@ -740,7 +740,7 @@
return r;
}
-void
+static void
setoption(char *name, char *value, config_item *conf)
{int n;
@@ -778,7 +778,7 @@
}
}
-void
+static void
showframe(int frame)
{fe->showframe = frame;
@@ -786,7 +786,7 @@
LOG("showframe");}
-int
+static int
keyev(Rune k)
{ if (fe->showframe != GAME) {@@ -817,7 +817,7 @@
return 0;
}
-void
+static void
tick(float delta)
{#ifdef PROFILE
@@ -841,7 +841,7 @@
float delta;
};
-void
+static void
timerproc(void *v)
{Channel *c;
@@ -860,7 +860,7 @@
}
}
-void
+static void
processmouse(Mouse *m, int *lm)
{int x, y, r;
@@ -903,7 +903,7 @@
send(fe->cs->mousec, m);
}
-void
+static void
doexit(void)
{ if (dolog) {--
⑨