summaryrefslogtreecommitdiff
path: root/asm/preproc-nop.c
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/preproc-nop.c
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/preproc-nop.c')
-rw-r--r--asm/preproc-nop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/preproc-nop.c b/asm/preproc-nop.c
index 575896ed..a9a46b0f 100644
--- a/asm/preproc-nop.c
+++ b/asm/preproc-nop.c
@@ -128,7 +128,7 @@ static char *nop_getline(void)
break;
}
- lfmt->line(LIST_READ, buffer);
+ lfmt->line(LIST_READ, src_get_linnum(), buffer);
return buffer;
}