summaryrefslogtreecommitdiff
path: root/src/struct.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-12-25 17:52:42 -0500
committerAdrian Thurston <thurston@complang.org>2014-12-25 17:52:42 -0500
commitc2049c9de73d3416a1d0f3a51f8fa04be65be6c8 (patch)
treed94fbc6d385ab0e2781085c2ad712ec040b020b6 /src/struct.c
parente9a6e75710c42ab1a80c3cf54c5131e2bc4329e1 (diff)
downloadcolm-c2049c9de73d3416a1d0f3a51f8fa04be65be6c8.tar.gz
some function renaming, global is now struct type
Diffstat (limited to 'src/struct.c')
-rw-r--r--src/struct.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/struct.c b/src/struct.c
index 5b37cb27..04c785cb 100644
--- a/src/struct.c
+++ b/src/struct.c
@@ -4,6 +4,11 @@
#include <stdlib.h>
#include <string.h>
+struct colm_tree *colm_get_global( Program *prg, long pos )
+{
+ return colm_struct_val( prg->global, pos );
+}
+
struct colm_struct *colm_new_struct( Program *prg, int id )
{
int structSize = prg->rtd->selInfo[id].size;