outmacho: clean up list walks, use nasm_basename/nasm_dirname
commit4b177bfb0373e7c8309be5841d9a13664b643d22
authorH. Peter Anvin <hpa@zytor.com>
Mon, 24 Apr 2017 06:46:41 +0000 (23 23:46 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 24 Apr 2017 06:46:41 +0000 (23 23:46 -0700)
tree1e390fb79846c12871a847ba09dfb730a06a40a1
parent6e11b2cc544572d5283e2c584ab95bcaf17997a7
outmacho: clean up list walks, use nasm_basename/nasm_dirname

Use the new nasm_basename() and nasm_dirname() functions to split a
pathname.

Use nasm_wcstring() to write a C string to an SAA.

Use list_for_each() to walk linked lists.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
output/outmacho.c