aboutsummaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-10-19 21:42:48 +0200
committerThomas White <taw@physics.org>2017-10-19 22:33:48 +0200
commit7f2d0abd61d9d25c7c07ad1de1de2e6067c22b3e (patch)
tree1109d2a96d55d156eb70989686e39895980d96e7 /src/frame.h
parent74be5482424aef26ea081aca0ccd0e5b6a5bcdcb (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.h5
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,