nasm/output
H. Peter Anvin 9bd1506d59 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>
2009-07-18 18:43:12 -07:00
..
dwarf.h Add new copyright headers to the output modules 2009-06-28 17:25:15 -07:00
elf32.h Add new copyright headers to the output modules 2009-06-28 17:25:15 -07:00
elf64.h Add new copyright headers to the output modules 2009-06-28 17:25:15 -07:00
elfcommon.h Add new copyright headers to the output modules 2009-06-28 17:25:15 -07:00
nulldbg.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
nullout.c Hash even backend-specific directives, unify null functions 2009-07-12 12:55:24 -07:00
outaout.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outaout.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outas86.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outas86.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outbin.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outbin.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outcoff.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outcoff.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outdbg.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outelf32.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outelf64.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outelf.c Add new copyright headers to the output modules 2009-06-28 17:25:15 -07:00
outelf.h Add new copyright headers to the output modules 2009-06-28 17:25:15 -07:00
outelf.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outform.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outform.h Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outieee.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outlib.c Add new copyright headers to the output modules 2009-06-28 17:25:15 -07:00
outlib.h Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outmacho32.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outmacho64.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outmacho.mac macho64: Manually merge macho64 branch with master branch. 2009-07-08 23:04:52 -05:00
outobj.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outobj.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outrdf2.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
outrdf2.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outrdf.c Don't fclose() the output in the backend 2009-07-12 12:15:35 -07:00
outrdf.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00