summaryrefslogtreecommitdiff
path: root/nasm.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-07-07 12:04:12 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-07-07 12:04:12 -0700
commita23aa4a3e931b0333336406d6b2b30b96c24507d (patch)
treee5e2a94eb9077a54e97c0fdd04c68080f6205b46 /nasm.h
parent5bc87609d214255d4ecdf3285d1b26e7df7dbc56 (diff)
downloadnasm-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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/nasm.h b/nasm.h
index 98823be8..0e6482ba 100644
--- a/nasm.h
+++ b/nasm.h
@@ -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.