Fixes to cope with empty blocks.

This is largely just placeholder code for handling EOF markers.


git-svn-id: svn://svn.code.sf.net/p/staden/code/io_lib@3528 ba6f2710-ca9f-427c-89d3-5bf716dbc8e1