mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-02-05 22:17:05 +00:00
047bd5a16f
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. |
||
---|---|---|
.. | ||
archives | ||
comments | ||
conditionals | ||
default_names | ||
double_colon | ||
echoing | ||
errors | ||
escape | ||
export | ||
include | ||
jobserver | ||
load | ||
loadapi | ||
mult_rules | ||
mult_targets | ||
order_only | ||
output-sync | ||
override | ||
parallelism | ||
patspecific_vars | ||
patternrules | ||
quoting | ||
recursion | ||
reinvoke | ||
rule_glob | ||
se_explicit | ||
se_implicit | ||
se_statpat | ||
shell_assignment | ||
statipattrules | ||
targetvars | ||
utf8 | ||
varnesting | ||
vpath | ||
vpath2 | ||
vpath3 | ||
vpathgpath | ||
vpathplus |