diff options
Diffstat (limited to 'lib/stream.c')
-rw-r--r-- | lib/stream.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/stream.c b/lib/stream.c index 36bbba1e..dc636361 100644 --- a/lib/stream.c +++ b/lib/stream.c @@ -236,6 +236,20 @@ stream_set_getp (struct stream *s, size_t pos) s->getp = pos; } +void +stream_set_endp (struct stream *s, size_t pos) +{ + STREAM_VERIFY_SANE(s); + + if (!ENDP_VALID (s, pos)) + { + STREAM_BOUND_WARN (s, "set endp"); + return ; + } + + s->endp = pos; +} + /* Forward pointer. */ void stream_forward_getp (struct stream *s, size_t size) |