Report column locations for errors about readings
commite78a53ab356c48921c0f96ac50be8e3daa66c8b0
authorOlly Betts <olly@survex.com>
Mon, 30 May 2016 13:55:09 +0000 (31 01:55 +1200)
committerOlly Betts <olly@survex.com>
Mon, 30 May 2016 13:55:09 +0000 (31 01:55 +1200)
tree4da35f9f746834befbbf37b088feed82ccf79d1a
parentf65e7e98d271a8d0e3485003b431182f7fba3c56
Report column locations for errors about readings

Call ftell() before each reading so we know its location in the
file.  We already track ftell() for the start of the line, so we
just need to subtract to calculate the column.
src/datain.c
tests/bad_back.out
tests/normal_bad.out