nasm/asm
H. Peter Anvin 3e555483b3 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>
2017-04-23 17:02:46 -07:00
..
assemble.c Fix ModR/M.mod for EVEX instructions 2017-04-20 17:48:44 -07:00
assemble.h Add a generic pragma-handling infrastructure 2017-03-07 21:32:37 -08:00
directiv.c Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
directiv.dat Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
error.c Make -Werror controllable on a per-warning-class basis 2017-03-08 01:26:40 -08:00
eval.c asm/*: Move directive processing to its own file, refactor error handling 2017-03-07 19:31:04 -08:00
eval.h
exprdump.c exprlib: move dumping code to a separate C file 2017-02-28 18:13:43 -08:00
exprlib.c exprlib: move dumping code to a separate C file 2017-02-28 18:13:43 -08:00
float.c BR 3392399: float: get rid of bogus exponent calculation 2017-04-05 21:47:20 -07:00
float.h
labels.c labels, outelf: remove casts for allocations 2017-04-23 17:02:46 -07:00
listing.c asm/*: Move directive processing to its own file, refactor error handling 2017-03-07 19:31:04 -08:00
listing.h
nasm.c Always remove a stale list file 2017-04-02 19:11:40 -07:00
parser.c BR3392392: fix broadcast decorators and improve error messages 2017-04-02 18:38:58 -07:00
parser.h
phash.pl
pptok.dat
pptok.pl perl: change to the new, safer 3-operand form of open() 2017-04-02 19:36:41 -07:00
pragma.c Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
preproc-nop.c asm/*: Move directive processing to its own file, refactor error handling 2017-03-07 19:31:04 -08:00
preproc.c Add a generic pragma-handling infrastructure 2017-03-07 21:32:37 -08:00
preproc.h
quote.c
quote.h
rdstrnum.c
segalloc.c
stdscan.c asm/*: Move directive processing to its own file, refactor error handling 2017-03-07 19:31:04 -08:00
stdscan.h
strfunc.c
tokens.dat
tokhash.pl perl: change to the new, safer 3-operand form of open() 2017-04-02 19:36:41 -07:00