diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-01-15 22:39:55 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-01-15 22:39:55 +0100 |
commit | 52d339b66d1739635047c34206bb9fea71567e2b (patch) | |
tree | 61e74e6e989a2cac580e5e80e54b9e41d7ebeb75 /src/sc_parse.c | |
parent | cc3e2244796a54a394d534e19149bc53fe2b3b71 (diff) |
Add subframes via SCInterpreter
Diffstat (limited to 'src/sc_parse.c')
-rw-r--r-- | src/sc_parse.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/sc_parse.c b/src/sc_parse.c index b94f548..aeb9ea9 100644 --- a/src/sc_parse.c +++ b/src/sc_parse.c @@ -42,6 +42,8 @@ struct _scblock SCBlock *next; SCBlock *prev; SCBlock *child; + + struct frame *fr; }; @@ -86,6 +88,18 @@ const char *sc_block_contents(const SCBlock *bl) } +struct frame *sc_block_frame(const SCBlock *bl) +{ + return bl->fr; +} + + +void sc_block_set_frame(SCBlock *bl, struct frame *fr) +{ + bl->fr = fr; +} + + /* Insert a new block after "bl". "name", "options" and "contents" * will not be copied. Returns the block just created, or NULL on error. * If *blfp points to NULL, it will updated to point at the new block. */ |