diff options
author | Thomas White <taw@bitwiz.me.uk> | 2020-01-13 00:06:05 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2020-01-13 00:17:50 +0100 |
commit | 1f2629403b9d62ecf44420f789b5c679a8ae1c98 (patch) | |
tree | 42f9c50056c089f9d70554dcdae626ffd8f552f1 /libstorycode/storycode.c | |
parent | 7304e278ced9adee5884482bbf3223f8ba1ccfde (diff) |
Add segment start/end markers
Diffstat (limited to 'libstorycode/storycode.c')
-rw-r--r-- | libstorycode/storycode.c | 16 |
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; } |