Improve error for survey and station with same name
commitd3fa69359226a927ff6b8adc5dca0fe6207cc35d
authorOlly Betts <olly@survex.com>
Mon, 22 Apr 2024 05:03:33 +0000 (22 17:03 +1200)
committerOlly Betts <olly@survex.com>
Mon, 22 Apr 2024 05:03:33 +0000 (22 17:03 +1200)
treea0722503c2a56cbcfb2712ffbca90b6a4e6d750f
parent4c83f846919dafe93ec729260ec282aeb4b96d1f
Improve error for survey and station with same name

Previously this error was not emitted in the case where a name was
used first for a station, and then as a survey on an explicitly
prefixed name.

Also the problematic name is now highlighted within the line
shown for context.

Closes https://github.com/ojwb/survex/pull/4, reported by Thomas
Holder.
src/datain.c
src/datain.h
src/readval.c
tests/Makefile.am
tests/cavern.tst
tests/samename.out [new file with mode: 0644]
tests/samename.svx [new file with mode: 0644]