diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-09-20 17:12:29 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-10-05 17:03:25 +0200 |
commit | 387858893a1a858e8205aae28a3609006c0c717d (patch) | |
tree | 1a52586a133e864097c6b3aa4c4e66aea2c14bdd /libstorycode/narrative.h | |
parent | 03ca4360631d5b0438912470c483989d294d7a1e (diff) |
Parse emphasis blocks in Bison
Diffstat (limited to 'libstorycode/narrative.h')
-rw-r--r-- | libstorycode/narrative.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/libstorycode/narrative.h b/libstorycode/narrative.h index a51136b..c5cb6f3 100644 --- a/libstorycode/narrative.h +++ b/libstorycode/narrative.h @@ -31,15 +31,8 @@ typedef struct _narrative Narrative; -enum narrative_run_type -{ - NARRATIVE_RUN_NORMAL, - NARRATIVE_RUN_BOLD, - NARRATIVE_RUN_ITALIC, - NARRATIVE_RUN_UNDERLINE, -}; - #include "slide.h" +#include "storycode.h" #include "imagestore.h" extern Narrative *narrative_new(void); @@ -60,14 +53,11 @@ extern int narrative_get_unsaved(Narrative *n); extern int narrative_item_is_text(Narrative *n, int item); -extern void narrative_add_text(Narrative *n, char **texts, - enum narrative_run_type *types, int n_runs); +extern void narrative_add_text(Narrative *n, struct text_run *runs, int n_runs); -extern void narrative_add_bp(Narrative *n, char **texts, - enum narrative_run_type *types, int n_runs); +extern void narrative_add_bp(Narrative *n, struct text_run *runs, int n_runs); -extern void narrative_add_prestitle(Narrative *n, char **texts, - enum narrative_run_type *types, int n_runs); +extern void narrative_add_prestitle(Narrative *n, struct text_run *runs, int n_runs); extern void narrative_add_slide(Narrative *n, Slide *slide); extern void narrative_add_eop(Narrative *n); |