diff options
author | Thomas White <taw@physics.org> | 2017-10-19 21:42:48 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-10-19 22:33:48 +0200 |
commit | 7f2d0abd61d9d25c7c07ad1de1de2e6067c22b3e (patch) | |
tree | 1109d2a96d55d156eb70989686e39895980d96e7 /src/frame.h | |
parent | 74be5482424aef26ea081aca0ccd0e5b6a5bcdcb (diff) |
Track the newlines at ends of paragraphs directly
No more messing around searching for \n characters
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frame.h b/src/frame.h index 1e46239..dbe79ef 100644 --- a/src/frame.h +++ b/src/frame.h @@ -131,8 +131,9 @@ extern double paragraph_height(Paragraph *para); extern void render_paragraph(cairo_t *cr, Paragraph *para, ImageStore *is, enum is_size isz); -extern int get_newline_at_end(Paragraph *para); -extern void set_newline_at_end(Paragraph *para); +extern SCBlock *get_newline_at_end(Paragraph *para); +extern void set_newline_at_end(Paragraph *para, SCBlock *bl); +extern void check_run(struct frame *fr, int pn); extern void add_run(Paragraph *para, SCBlock *scblock, SCBlock *macro_real, size_t offs_bytes, size_t len_bytes, |