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 Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
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 Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
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 New backend interface - assembler internals #1 2016-09-20 16:05:09 -07:00
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 Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
phash.pl Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
pptok.dat Merge remote-tracking branch 'origin/nasm-2.12.xx' 2016-10-04 14:09:07 -07:00
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 Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
quote.c Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
quote.h Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
rdstrnum.c Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
segalloc.c Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
stdscan.c asm/*: Move directive processing to its own file, refactor error handling 2017-03-07 19:31:04 -08:00
stdscan.h Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
strfunc.c Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
tokens.dat Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
tokhash.pl perl: change to the new, safer 3-operand form of open() 2017-04-02 19:36:41 -07:00