summaryrefslogtreecommitdiff
path: root/asm/pragma.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-08-10 06:45:12 -0700
committerH. Peter Anvin <hpa@zytor.com>2019-08-10 06:45:12 -0700
commit59d4ccc2b06a25e30a4ba0a62ad64905d88e562b (patch)
tree2ddfe78a83a02388197ac9d1db1032d51a8da715 /asm/pragma.c
parent06335873ae360054ae08c67762cbe3d8ee9ca489 (diff)
downloadnasm-59d4ccc2b06a25e30a4ba0a62ad64905d88e562b.tar.gz
Add %pragma list options
Add a %pragma to set (or clear) listing options. It only takes effect on the next assembly pass, however! Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'asm/pragma.c')
-rw-r--r--asm/pragma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/asm/pragma.c b/asm/pragma.c
index 43de6e2c..8cfbafb8 100644
--- a/asm/pragma.c
+++ b/asm/pragma.c
@@ -45,6 +45,7 @@
#include "nasmlib.h"
#include "assemble.h"
#include "error.h"
+#include "listing.h"
static enum directive_result output_pragma(const struct pragma *pragma);
static enum directive_result limit_pragma(const struct pragma *pragma);
@@ -86,7 +87,7 @@ static struct pragma_facility global_pragmas[] =
{
{ "asm", NULL },
{ "limit", limit_pragma },
- { "list", NULL },
+ { "list", list_pragma },
{ "file", NULL },
{ "input", NULL },