diff options
author | H. Peter Anvin <hpa@zytor.com> | 2019-08-09 22:31:45 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2019-08-09 22:31:45 -0700 |
commit | ab6f8319552f17d269a5bf2facea48ea1c338b71 (patch) | |
tree | 77f41f8eb26c872d5a884c21308824ce154baa85 /asm/listing.h | |
parent | ad1f50a50694b31539db5a24b0c2bc1090855094 (diff) | |
download | nasm-ab6f8319552f17d269a5bf2facea48ea1c338b71.tar.gz |
listing: when listing lines in macros and rep blocks, show the actual line
When printing lines coming from %rep blocks and macros, show the line
number corresponding to the line actually being printed.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'asm/listing.h')
-rw-r--r-- | asm/listing.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/asm/listing.h b/asm/listing.h index 00326854..9d4a3353 100644 --- a/asm/listing.h +++ b/asm/listing.h @@ -70,8 +70,11 @@ struct lfmt { * `int' parameter is LIST_READ or LIST_MACRO depending on * whether the line came directly from an input file or is the * result of a multi-line macro expansion. + * + * If a line number is provided, print it; if the line number is + * -1 then use the same line number as the previous call. */ - void (*line)(int type, char *line); + void (*line)(int type, int32_t lineno, const char *line); /* * Called to change one of the various levelled mechanisms in the |