Lee Kindness <lkindness@csl.co.uk> writes:
> And the patch below corrects a pet peeve I have with ecpg, all errors
> and warnings are output with a line number one less than reality...
Hmm. yylineno *should* be the right thing. I think you are patching
a symptom rather than fixing the correct cause. Perhaps look into the
way that the line number counter is initialized?
regards, tom lane