summaryrefslogtreecommitdiff
path: root/opt
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-06-11 19:00:52 -0400
committerOri Bernstein <ori@eigenstate.org>2012-06-11 19:00:52 -0400
commit8865ed9510427f9af64eeeaa18f8209c91aeb456 (patch)
tree8637c3f57547622f07549277683e2c84f3e28b77 /opt
parent9d00fe8f782d9c86ae4b787acef760ab8dc82af0 (diff)
downloadmc-8865ed9510427f9af64eeeaa18f8209c91aeb456.tar.gz
Make unexported functions static.
Just cleaner that way.
Diffstat (limited to 'opt')
-rw-r--r--opt/cfg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/opt/cfg.c b/opt/cfg.c
index 92e3d50..ec09216 100644
--- a/opt/cfg.c
+++ b/opt/cfg.c
@@ -14,7 +14,7 @@
#include "opt.h"
-Bb *mkbb(Cfg *cfg)
+static Bb *mkbb(Cfg *cfg)
{
static int nextbbid = 0;
Bb *bb;
@@ -27,13 +27,13 @@ Bb *mkbb(Cfg *cfg)
return bb;
}
-void label(Cfg *cfg, Node *lbl, Bb *bb)
+static void label(Cfg *cfg, Node *lbl, Bb *bb)
{
htput(cfg->lblmap, lbl->lbl.name, bb);
lappend(&bb->lbls, &bb->nlbls, lbl->lbl.name);
}
-int addnode(Cfg *cfg, Bb *bb, Node *n)
+static int addnode(Cfg *cfg, Bb *bb, Node *n)
{
switch (exprop(n)) {
case Ojmp: