make isl_stream->col consistently point to column of next character
commit6376ee7c5b94298b731521b23c70f7adc953ed4e
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 11 Oct 2013 12:31:48 +0000 (11 14:31 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 3 Feb 2015 18:45:24 +0000 (3 19:45 +0100)
tree108351f4999f565409f06821bd7447569eb5c86a
parent1ff3c6f69871946f1e32b2ccc2190464aadf1f69
make isl_stream->col consistently point to column of next character

The original code did not assign a consistent value to "col",
resulting in the first character on the first line to be considered to be
in column "1", while the first character on other lines would be considered
to be in column "0".  This could lead to confusion, especially
for parsing that is indentation sensitive such as the YAML parsing
that will be introduced next.

Instead of applying a minimal fix, we clean up the code a little
bit to make it more transparent.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_stream.c
isl_stream_private.h