summaryrefslogtreecommitdiffstats
path: root/compile.h
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-05 22:37:46 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-05 22:59:53 +0100
commit47e015e9468ce109c0fb28562d2b768ba29d2de3 (patch)
treef83083835a0a12cf23731507f0b38a011271bb3d /compile.h
parentab1a97472c91a755c2138417db2fe977c263f536 (diff)
Make a few constant globals actually const.
This means the .data and .bss sections are empty, a good thing in a shared library (see #98).
Diffstat (limited to 'compile.h')
-rw-r--r--compile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/compile.h b/compile.h
index 150eef28..f982e3bf 100644
--- a/compile.h
+++ b/compile.h
@@ -7,6 +7,7 @@
struct bytecode;
struct symbol_table;
+struct cfunction;
struct inst;
typedef struct inst inst;
@@ -41,7 +42,7 @@ block gen_or(block a, block b);
block gen_cond(block cond, block iftrue, block iffalse);
-block gen_cbinding(struct symbol_table* functions, block b);
+block gen_cbinding(const struct cfunction* functions, int nfunctions, block b);
void block_append(block* b, block b2);
block block_join(block a, block b);