diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-07-07 12:04:12 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-07-07 12:04:12 -0700 |
commit | a23aa4a3e931b0333336406d6b2b30b96c24507d (patch) | |
tree | e5e2a94eb9077a54e97c0fdd04c68080f6205b46 /nasm.h | |
parent | 5bc87609d214255d4ecdf3285d1b26e7df7dbc56 (diff) | |
download | nasm-a23aa4a3e931b0333336406d6b2b30b96c24507d.tar.gz |
listing: preserve list file on error, include errors
Instead of removing the list file on error, keep the list file and
include the errors in the list file. This makes it actually possible
to debug things that involve deep macro recursion, where the line
number is pretty much meaningless.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'nasm.h')
-rw-r--r-- | nasm.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -182,6 +182,11 @@ typedef struct { * Reverse the effects of uplevel. */ void (*downlevel) (int); + + /* + * Called on a warning or error, with the error message. + */ + void (*error)(int severity, const char *pfx, const char *msg); } ListGen; /* @@ -941,7 +946,6 @@ struct ofmt { */ struct dfmt { - /* * This is a short (one-liner) description of the type of * output generated by the driver. |