diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-09-08 22:30:44 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-09-08 22:30:44 +0200 |
commit | 5eaef1d4fcce1cfba848f081f06f3ec14a4e80a7 (patch) | |
tree | fdb0a245de7fd44c6624bab5d9600bc4cd2a939e /src/sc_parse.h | |
parent | cba13eb85af0714aa7ffa605773215baf5833612 (diff) |
Copy SCBlocks when executing a macro
Diffstat (limited to 'src/sc_parse.h')
-rw-r--r-- | src/sc_parse.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sc_parse.h b/src/sc_parse.h index a5c1514..1e80c8c 100644 --- a/src/sc_parse.h +++ b/src/sc_parse.h @@ -35,12 +35,17 @@ extern SCBlock *sc_parse(const char *sc); extern void sc_block_free(SCBlock *bl); +extern SCBlock *sc_block_copy(const SCBlock *bl); + extern SCBlock *sc_block_next(const SCBlock *bl); extern SCBlock *sc_block_child(const SCBlock *bl); +extern SCBlock *sc_block_macro_child(const SCBlock *bl); extern const char *sc_block_name(const SCBlock *bl); extern const char *sc_block_options(const SCBlock *bl); extern const char *sc_block_contents(const SCBlock *bl); +extern void sc_block_set_macro_child(SCBlock *bl, SCBlock *mchild); + extern SCBlock *sc_block_append(SCBlock *bl, char *name, char *opt, char *contents, SCBlock **blfp); |