summaryrefslogtreecommitdiff
path: root/asm/listing.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-08-09 22:31:45 -0700
committerH. Peter Anvin <hpa@zytor.com>2019-08-09 22:31:45 -0700
commitab6f8319552f17d269a5bf2facea48ea1c338b71 (patch)
tree77f41f8eb26c872d5a884c21308824ce154baa85 /asm/listing.h
parentad1f50a50694b31539db5a24b0c2bc1090855094 (diff)
downloadnasm-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.h5
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