aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2020-10-18 13:43:05 +0200
committerJay Berkenbilt <ejb@ql.org>2020-10-18 13:43:05 +0200
commitbed165c9fc070d2c483d8cc9bd0e7ac299b29e23 (patch)
tree8ce776a0d080bfcf28d42d91aa2e8e1cbfa0c6fa /include
parent1a888ee3b1eb296a610ddb8e5a28159b8c97ba99 (diff)
downloadqpdf-bed165c9fc070d2c483d8cc9bd0e7ac299b29e23.tar.zst
Stop using InputSource::unreadCh
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/InputSource.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/qpdf/InputSource.hh b/include/qpdf/InputSource.hh
index 8850828d..22e3abcd 100644
--- a/include/qpdf/InputSource.hh
+++ b/include/qpdf/InputSource.hh
@@ -85,9 +85,14 @@ class QPDF_DLL_CLASS InputSource
virtual size_t read(char* buffer, size_t length) = 0;
// Note: you can only unread the character you just read. The
- // specific character is ignored by some implementations.
+ // specific character is ignored by some implementations. unreadCh
+ // will be removed from the API in qpdf 11.
virtual void unreadCh(char ch) = 0;
+ // ABI: delete unreadCh, and direct people to seek backward by 1
+ // character instead.
+ // virtual void unreadCh(char ch) final = delete;
+
protected:
qpdf_offset_t last_offset;