summaryrefslogtreecommitdiff
path: root/output/outcoff.mac
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-20 15:20:16 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-20 15:20:16 -0700
commitcfb7176ca211d2bdc8c790c1b49e6f29db42f777 (patch)
tree5c8749b99df0ac2a1b508d2e2e52248e3a170dc0 /output/outcoff.mac
parent76cbaa4b2e433ed78031dc75ae1b3183867c55ab (diff)
downloadnasm-cfb7176ca211d2bdc8c790c1b49e6f29db42f777.tar.gz
nasm-cfb7176ca211d2bdc8c790c1b49e6f29db42f777.tar.bz2
nasm-cfb7176ca211d2bdc8c790c1b49e6f29db42f777.zip
Move the output format macros into the macros.pl mechanism
Move the handling of "extra" macros (i.e. output format macros) into the macros.pl mechanism. This allows us to change the format of the internal macro store in the future - e.g. to a single byte store without redundant pointers. Also, stop using indicies into a long array when there is no good reason to not just use different arrays.
Diffstat (limited to 'output/outcoff.mac')
-rw-r--r--output/outcoff.mac10
1 files changed, 10 insertions, 0 deletions
diff --git a/output/outcoff.mac b/output/outcoff.mac
new file mode 100644
index 0000000..c9ecb54
--- /dev/null
+++ b/output/outcoff.mac
@@ -0,0 +1,10 @@
+OUT: coff
+%define __SECT__ [section .text]
+%macro __NASM_CDecl__ 1
+%endmacro
+%imacro export 1+.nolist
+[export %1]
+%endmacro
+%imacro safeseh 1.nolist
+[safeseh %1]
+%endmacro