aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/storycode.c
diff options
context:
space:
mode:
Diffstat (limited to 'libstorycode/storycode.c')
-rw-r--r--libstorycode/storycode.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libstorycode/storycode.c b/libstorycode/storycode.c
index 89c0440..8401e9b 100644
--- a/libstorycode/storycode.c
+++ b/libstorycode/storycode.c
@@ -287,6 +287,15 @@ static int write_starter(GOutputStream *fh, struct narrative_item *item)
if ( write_string(fh, "ENDOFPRESENTATION") ) return 1;
break;
+ case NARRATIVE_ITEM_SEGSTART:
+ if ( write_string(fh, "SEGMENT_START: ") ) return 1;
+ break;
+
+ case NARRATIVE_ITEM_SEGEND:
+ if ( write_string(fh, "SEGMENT_END") ) return 1;
+ break;
+
+
}
return 0;
}
@@ -318,6 +327,13 @@ static int write_item(GOutputStream *fh, struct narrative_item *item)
case NARRATIVE_ITEM_EOP:
break;
+ case NARRATIVE_ITEM_SEGSTART:
+ write_para(fh, item->runs, item->n_runs);
+ break;
+
+ case NARRATIVE_ITEM_SEGEND:
+ break;
+
}
return 0;
}