diff options
-rw-r--r-- | CHANGES | 5 | ||||
-rw-r--r-- | nasm.c | 2 | ||||
-rw-r--r-- | output/outaout.c | 1 | ||||
-rw-r--r-- | output/outas86.c | 1 | ||||
-rw-r--r-- | output/outbin.c | 1 | ||||
-rw-r--r-- | output/outcoff.c | 1 | ||||
-rw-r--r-- | output/outelf.c | 1 | ||||
-rw-r--r-- | output/outobj.c | 1 | ||||
-rw-r--r-- | output/outrdf.c | 1 | ||||
-rw-r--r-- | output/outrdf2.c | 1 | ||||
-rw-r--r-- | test/nasmformat.asm | 4 |
11 files changed, 4 insertions, 15 deletions
@@ -3,10 +3,7 @@ * "make spotless" no longer deletes config.h.in. * Unterminated string auto termination. * %(el)if(n)idn insensitivity to string quotes difference (#809300). -* __NASM_FORMAT__ now gives output format chosen for compiling. - See test/nasmformat.asm for details and output/out*.c for actual values - for this macro. - !!NEEDS DOCUMENTING!! +* (nasm.c) __OUTPUT_FORMAT__ changed to string value instead of symbol. 0.98.38 ------- @@ -185,7 +185,7 @@ int main(int argc, char **argv) /* define some macros dependent of command-line */ { char temp [64]; - sprintf (temp, "__OUTPUT_FORMAT__=%s\n", ofmt->shortname); + sprintf (temp, "__OUTPUT_FORMAT__='%s'\n", ofmt->shortname); pp_pre_define (temp); } diff --git a/output/outaout.c b/output/outaout.c index 18746e3..24e2b58 100644 --- a/output/outaout.c +++ b/output/outaout.c @@ -877,7 +877,6 @@ static void aout_filename (char *inname, char *outname, efunc error) static const char *aout_stdmac[] = { "%define __SECT__ [section .text]", - "%define __NASM_FORMAT__ 'aout'", "%macro __NASM_CDecl__ 1", "%endmacro", NULL diff --git a/output/outas86.c b/output/outas86.c index ccf87e7..3026ad9 100644 --- a/output/outas86.c +++ b/output/outas86.c @@ -555,7 +555,6 @@ static void as86_filename (char *inname, char *outname, efunc error) static const char *as86_stdmac[] = { "%define __SECT__ [section .text]", - "%define __NASM_FORMAT__ 'as86'", "%macro __NASM_CDecl__ 1", "%endmacro", NULL diff --git a/output/outbin.c b/output/outbin.c index 3f63d4c..80be83c 100644 --- a/output/outbin.c +++ b/output/outbin.c @@ -137,7 +137,6 @@ static char *infile, *outfile; static const char *bin_stdmac[] = { "%define __SECT__ [section .text]", - "%define __NASM_FORMAT__ 'bin'", "%imacro org 1+.nolist", "[org %1]", "%endmacro", diff --git a/output/outcoff.c b/output/outcoff.c index bd0202f..856da58 100644 --- a/output/outcoff.c +++ b/output/outcoff.c @@ -820,7 +820,6 @@ static void coff_win32_filename (char *inname, char *outname, efunc error) static const char *coff_stdmac[] = { "%define __SECT__ [section .text]", - "%define __NASM_FORMAT__ 'coff'", "%macro __NASM_CDecl__ 1", "%endmacro", "%imacro export 1+.nolist", diff --git a/output/outelf.c b/output/outelf.c index bff9405..16c25d1 100644 --- a/output/outelf.c +++ b/output/outelf.c @@ -1225,7 +1225,6 @@ static void elf_filename (char *inname, char *outname, efunc error) static const char *elf_stdmac[] = { "%define __SECT__ [section .text]", - "%define __NASM_FORMAT__ 'elf'", "%macro __NASM_CDecl__ 1", "%define $_%1 $%1", "%endmacro", diff --git a/output/outobj.c b/output/outobj.c index a3eed14..14b6cd9 100644 --- a/output/outobj.c +++ b/output/outobj.c @@ -2285,7 +2285,6 @@ void obj_fwrite(ObjRecord *orp) static const char *obj_stdmac[] = { "%define __SECT__ [section .text]", - "%define __NASM_FORMAT__ 'obj'", "%imacro group 1+.nolist", "[group %1]", "%endmacro", diff --git a/output/outrdf.c b/output/outrdf.c index 32e63bc..d9989e5 100644 --- a/output/outrdf.c +++ b/output/outrdf.c @@ -501,7 +501,6 @@ static void rdf_filename (char *inname, char *outname, efunc error) { static char *rdf_stdmac[] = { "%define __SECT__ [section .text]", - "%define __NASM_FORMAT__ 'oldrdf'", /* Its always oldrdf for consistency with rdf version 2 */ "%imacro library 1+.nolist", "[library %1]", "%endmacro", diff --git a/output/outrdf2.c b/output/outrdf2.c index 3c69e0a..1dfef93 100644 --- a/output/outrdf2.c +++ b/output/outrdf2.c @@ -753,7 +753,6 @@ static void rdf2_filename (char *inname, char *outname, efunc error) { static const char *rdf2_stdmac[] = { "%define __SECT__ [section .text]", - "%define __NASM_FORMAT__ 'rdf'", "%imacro library 1+.nolist", "[library %1]", "%endmacro", diff --git a/test/nasmformat.asm b/test/nasmformat.asm index 82d61c1..5b4dc25 100644 --- a/test/nasmformat.asm +++ b/test/nasmformat.asm @@ -1,9 +1,9 @@ -%if __NASM_FORMAT__ == 'bin' +%if __OUTPUT_FORMAT__ == 'bin' db 'This is binary format file' -%elif __NASM_FORMAT__ == 'obj' +%elif __OUTPUT_FORMAT__ == 'obj' db 'This is object format file' |