diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-09-30 10:34:08 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-10-10 10:03:17 +0200 |
| commit | d5e7498e1c5098c0dd9a9630929d45ba2c37a47a (patch) | |
| tree | e13ea7ca6bf6014aa639f136c6e2e57c392e92eb /text.h | |
| parent | d2d909d53e7132165422ba4685bdc92c766972b7 (diff) | |
| download | vis-d5e7498e1c5098c0dd9a9630929d45ba2c37a47a.tar.gz vis-d5e7498e1c5098c0dd9a9630929d45ba2c37a47a.tar.xz | |
text: mark text_byte(s)_get argument as const
Diffstat (limited to 'text.h')
| -rw-r--r-- | text.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -221,7 +221,7 @@ size_t text_lineno_by_pos(Text*, size_t pos); * return an artificial NUL byte at EOF. * @endrst */ -bool text_byte_get(Text*, size_t pos, char *byte); +bool text_byte_get(const Text*, size_t pos, char *byte); /** * Store at most ``len`` bytes starting from ``pos`` into ``buf``. * @param pos The absolute starting position. @@ -232,7 +232,7 @@ bool text_byte_get(Text*, size_t pos, char *byte); * .. warning:: ``buf`` will not be NUL terminated. * @endrst */ -size_t text_bytes_get(Text*, size_t pos, size_t len, char *buf); +size_t text_bytes_get(const Text*, size_t pos, size_t len, char *buf); /** * Fetch text range into newly allocate memory region. * @param pos The absolute starting position. |
