bin: Use nasm_zalloc helper for section allocation in a sake of simplicity
commit3bc3ff2fb685a645698f9db9cfc903df30e4e555
authorCyrill Gorcunov <gorcunov@gmail.com>
Sun, 27 Feb 2011 22:18:54 +0000 (28 01:18 +0300)
committerCyrill Gorcunov <gorcunov@gmail.com>
Sun, 27 Feb 2011 22:26:24 +0000 (28 01:26 +0300)
treee48cc154b3844959565c289cd68cb70d9c718746
parent11db774a151e9d895fa05f980563a5cafb0f306a
bin: Use nasm_zalloc helper for section allocation in a sake of simplicity

Instead of opencoded zero assignments better to use nasm_zalloc
and set fields which are supposed to be non-nil. This simplifies
code and makes it more readable.

Also note the field 'ifollows' renamed to 'prev' as it should
be from the very beginning in terms of lists.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
output/outbin.c