nasm_delete(): ugly hack to make it side-effect-free
commita92a7dce5ed61d482c549abc3c1ef144025ec2ae
authorH. Peter Anvin <hpa@zytor.com>
Tue, 24 Jan 2017 22:04:44 +0000 (24 14:04 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 24 Jan 2017 22:04:44 +0000 (24 14:04 -0800)
treebbfbb2523c6a3f3683a2ab451092c85928298f2e
parent75f2c1e131a7651a793abc8f59aea09b6226ce7d
nasm_delete(): ugly hack to make it side-effect-free

Use an ugly hack to make nasm_delete() side effect free.  This assumes
all pointers have the same internal NULL pointer representation as
void *, however, we already assume zero-initialized memory will
represent a NULL pointer, so hopefully this is okay on any platform we
actually care about.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
include/nasmlib.h