]>
git.ipfire.org Git - thirdparty/gcc.git/commit
PR modula2/120253: Error message column numbers should start at 1 not 0
This patch ensures that column numbers start at 1 rather than 0.
gcc/m2/ChangeLog:
PR modula2/120253
* m2.flex (FIRST_COLUMN): New define.
(updatepos): Remove commented code.
(consumeLine): Assign column to FIRST_COLUMN.
(initLine): Ditto.
(m2flex_GetColumnNo): Return FIRST_COLUMN if currentLine is NULL.
(m2flex_GetLineNo): Rewrite for positive logic.
(m2flex_GetLocation): Ditto.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>