diff options
author | Ori Bernstein <ori@eigenstate.org> | 2012-06-11 19:00:52 -0400 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2012-06-11 19:00:52 -0400 |
commit | 8865ed9510427f9af64eeeaa18f8209c91aeb456 (patch) | |
tree | 8637c3f57547622f07549277683e2c84f3e28b77 /opt | |
parent | 9d00fe8f782d9c86ae4b787acef760ab8dc82af0 (diff) | |
download | mc-8865ed9510427f9af64eeeaa18f8209c91aeb456.tar.gz |
Make unexported functions static.
Just cleaner that way.
Diffstat (limited to 'opt')
-rw-r--r-- | opt/cfg.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: |