aboutsummaryrefslogtreecommitdiff
path: root/src/sc_parse.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-09-13 09:54:11 +0200
committerThomas White <taw@bitwiz.org.uk>2014-09-13 09:54:11 +0200
commit7b302ea4b906b162c37c3370434165f6e83a9def (patch)
tree8af7639781698cf6722ce329abf47589e79ad5da /src/sc_parse.c
parent28026ebf0fde1eb1b51f3808b4f3fc681039e887 (diff)
Restore notes
Diffstat (limited to 'src/sc_parse.c')
-rw-r--r--src/sc_parse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sc_parse.c b/src/sc_parse.c
index 93a346e..0f8e893 100644
--- a/src/sc_parse.c
+++ b/src/sc_parse.c
@@ -514,6 +514,13 @@ void sc_block_set_options(SCBlock *bl, char *opt)
}
+void sc_block_set_contents(SCBlock *bl, char *con)
+{
+ free(bl->contents);
+ bl->contents = con;
+}
+
+
SCBlock *find_last_child(SCBlock *bl)
{
if ( bl == NULL ) return NULL;