From 0cba10757976294d034ae5d8cd38784555a7ac8b Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 5 Jul 2009 14:45:12 -0700 Subject: Make it possible for outputs to be either text or binary Allow the backend to specify that an output format is either text or binary. For future uses, define this as a flag word so we can define other flags in the future if it would make sense. Currently, the ieee and dbg formats are text; all the others are binary. Signed-off-by: H. Peter Anvin --- nasm.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'nasm.h') diff --git a/nasm.h b/nasm.h index 775d0f9..459b64e 100644 --- a/nasm.h +++ b/nasm.h @@ -774,13 +774,11 @@ struct ofmt { */ const char *shortname; - /* - * this is reserved for out module specific help. - * It is set to NULL in all the out modules and is not implemented - * in the main program + * Output format flags. */ - const char *helpstring; +#define OFMT_TEXT 1 /* Text file format */ + unsigned int flags; /* * this is a pointer to the first element of the debug information -- cgit v1.2.3