Consistently declare local error reporting variables (lineno, clineno, filename) for all types of functions.