Remove function pointers in output, simplify error handling
commit9bd1506d5999d7c41a4cf6de2f43b97939bb260e
authorH. Peter Anvin <hpa@zytor.com>
Sun, 19 Jul 2009 01:07:17 +0000 (18 21:07 -0400)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 19 Jul 2009 01:43:12 +0000 (18 18:43 -0700)
treed3dad5bda2b167af7dfe29cad7cb532406ddb1c4
parent159178f2aa516718fcb420a281c17adc8b330492
Remove function pointers in output, simplify error handling

Remove a bunch of function pointers in the output stage; they are
never changed and don't add any value.  Also make "ofile" a global
variable and let the backend use it directly.

All we ever did with these variables were stashing it in locals and
using them as-is anyway for no benefit.

Also change the global error function, nasm_error() into a true
function which invokes a function pointer internally.  That lets us
use direct calls to it.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
23 files changed:
nasm.c
nasm.h
nasmlib.c
nasmlib.h
ndisasm.c
output/nulldbg.c
output/outaout.c
output/outas86.c
output/outbin.c
output/outcoff.c
output/outdbg.c
output/outelf32.c
output/outelf64.c
output/outform.c
output/outform.h
output/outieee.c
output/outlib.h
output/outmacho32.c
output/outmacho64.c
output/outobj.c
output/outrdf2.c
raa.c
saa.c