Keep an EOF mark for memory streams
authorP. F. Chimento <philip.chimento@gmail.com>
Sat, 18 Jun 2011 20:45:11 +0000 (22:45 +0200)
committerP. F. Chimento <philip.chimento@gmail.com>
Sat, 18 Jun 2011 20:45:11 +0000 (22:45 +0200)
commitbea353f718967322136bfe95b04d1de02084671a
tree01a6ef34c43b17758d9448b447d439d8f5a90f7f
parent38218bc5a9a2c0ac25840a9ca52e8e6d7d0123ac
Keep an EOF mark for memory streams

Seeking to seekmode_End in a memory stream should move relative to
the last written position in the buffer, not the end of the memory
buffer. This brings the behavior of memory streams into line with
what would happen in a file stream.

Fixes #30.
libchimara/stream.c
libchimara/stream.h
libchimara/strio.c