make/tests/scripts
Paul Smith 047bd5a16f [SV 46433] Show recipe line offsets in line number messages.
While displaying line numbers, show the relevant line number inside
the recipe not just the first line of the entire recipe.
Sample changes suggested by Brian Vandenberg <phantall@gmail.com>

* gnumake.h (gmk_floc): Add an 'offset' to track the recipe offset.
* read.c (eval, eval_makefile, eval_buffer): Initialize 'offset'.
(record_files, install_pattern_rule): Ditto.
* job.c (new_job, job_next_command): Update 'offset' based on the
line of the recipe we're expanding or invoking.
(child_error): Add 'offset' when showing the line number.
* function.c (func_shell_base): Ditto.
* output.c (error, fatal): Ditto.
* NEWS: Mention the new ability.
* tests/scripts/features/errors: Check the line number on errors.
* tests/scripts/functions/warning: Check the line number on warnings.
* tests/scripts/features/output-sync,
tests/scripts/features/parallelism, tests/scripts/functions/shell,
tests/scripts/functions/error: Update line numbers.
2016-04-11 07:51:05 -04:00
..
features [SV 46433] Show recipe line offsets in line number messages. 2016-04-11 07:51:05 -04:00
functions [SV 46433] Show recipe line offsets in line number messages. 2016-04-11 07:51:05 -04:00
misc [SV 46995] Strip leading/trailing space from variable names 2016-03-23 01:25:51 -04:00
options [SV 102] Don't show unnecessary include file errors. 2016-04-09 20:06:46 -04:00
targets * job.c (child_error): Combine file info with error message. 2016-03-20 14:23:22 -04:00
variables [SV 102] Don't show unnecessary include file errors. 2016-04-09 20:06:46 -04:00
vms [SV 41758]: Fix archive support for VMS. 2014-10-20 01:31:42 -04:00
test_template Update the test template. A few fixes in run_make_test(). 2004-09-22 04:36:17 +00:00