aboutsummaryrefslogtreecommitdiff
path: root/src/sc_parse.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-02-18 18:25:00 +0100
committerThomas White <taw@physics.org>2018-03-03 17:57:41 +0100
commit4b757f1f48643e9b049e4c868c94d127a6bc8c1c (patch)
tree2361a14bbd158677faef53c36dca790c3f45385f /src/sc_parse.h
parent2a80430b0e762e7ee3ccd0c8a620baf40fb30b12 (diff)
Remove macro_real_block and friends, and delete text based on SCBlocks instead of runs
macro_real_block was a pain because it meant we needed to look somewhere else every time we needed the SCBlock for something. The new way is to have two SCBlocks for each run, one which is the block from the flow of the actual document (i.e. for blocks within macros, this is the macro_real_block, otherwise it's the same as before). The second block ("rscblock") is whichever run actually contains the text for the run. It might be from the document, within the macro definition or within the macro's "\contents".
Diffstat (limited to 'src/sc_parse.h')
-rw-r--r--src/sc_parse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sc_parse.h b/src/sc_parse.h
index be7d0ee..ff10638 100644
--- a/src/sc_parse.h
+++ b/src/sc_parse.h
@@ -82,6 +82,6 @@ extern void show_sc_block(const SCBlock *bl, const char *prefix);
extern char *serialise_sc_block(const SCBlock *bl);
extern void save_sc_block(FILE *fh, const SCBlock *bl);
-extern void scblock_delete_text(SCBlock *b, size_t o1, size_t o2);
+extern size_t scblock_delete_text(SCBlock *b, ssize_t o1, ssize_t o2);
#endif /* SC_PARSE_H */