mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
3e555483b3
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> |
||
---|---|---|
.. | ||
assemble.c | ||
assemble.h | ||
directiv.c | ||
directiv.dat | ||
error.c | ||
eval.c | ||
eval.h | ||
exprdump.c | ||
exprlib.c | ||
float.c | ||
float.h | ||
labels.c | ||
listing.c | ||
listing.h | ||
nasm.c | ||
parser.c | ||
parser.h | ||
phash.pl | ||
pptok.dat | ||
pptok.pl | ||
pragma.c | ||
preproc-nop.c | ||
preproc.c | ||
preproc.h | ||
quote.c | ||
quote.h | ||
rdstrnum.c | ||
segalloc.c | ||
stdscan.c | ||
stdscan.h | ||
strfunc.c | ||
tokens.dat | ||
tokhash.pl |