nasm/stdlib
H. Peter Anvin c51369067c errors: simplify nasm_fatal() and nasm_panic()
Nearly all instances of nasm_fatal() and nasm_panic() take a flags
argument of zero. Simplify the code by making nasm_fatal and
nasm_panic default to no flags, and add an alternate version if flags
really are desired. This also means that every call site doesn't have
to initialize a zero argument.

Furthermore, ERR_NOFILE is now often not necessary, as the error code
will no longer cause a null reference if there is no current
file. Therefore, we can remove many instances of ERR_NOFILE which only
deprives the user of information.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2018-06-15 18:20:17 -07:00
..
snprintf.c lib: split library into stdlib and nasmlib; header handling fixes 2016-03-08 12:20:02 -08:00
strlcpy.c lib: split library into stdlib and nasmlib; header handling fixes 2016-03-08 12:20:02 -08:00
strnlen.c nasmlib: break up nasmlib.c into logical components 2016-05-25 05:43:49 -07:00
strrchrnul.c Eliminate filename length restrictions, remote ofmt->filename() 2017-12-20 13:38:20 -08:00
vsnprintf.c errors: simplify nasm_fatal() and nasm_panic() 2018-06-15 18:20:17 -07:00