diff options
author | H. Peter Anvin <hpa@zytor.com> | 2017-04-23 17:02:46 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2017-04-23 17:02:46 -0700 |
commit | 3e555483b30c6f0bd4b348861f694f73e487c134 (patch) | |
tree | ed41b485387185e2bb0f992ff1599b419bc31f78 /Makefile.in | |
parent | 4dfbd9aec56577d7e0dc9398781ea9918dbdcbf6 (diff) | |
download | nasm-3e555483b30c6f0bd4b348861f694f73e487c134.tar.gz |
labels, outelf: remove casts for allocations
Remove casts from allocations. This is simply Not How To Do Things:
every cast carries a potential risk of being a toxic type misuse
(e.g. pointer as integer) and so any unnecessary cast is actively
harmful.
Note that a lot of allocations here are completely unnecessary: the
core code now guarantees that all filenames are permanently allocated
for the duration of the assembly, and so should be turned into const
char * without any further allocation. Any remaining malloc+strcpy
should be turned into nasm_strdup(), and nasm_new[n]() used whereever
possible.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'Makefile.in')
0 files changed, 0 insertions, 0 deletions