diff options
author | H. Peter Anvin <hpa@zytor.com> | 2016-05-10 02:56:29 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2016-05-10 03:01:58 -0700 |
commit | 274cda81f8f644c3e8b859f778e61af34fd6e776 (patch) | |
tree | 88d0f56e09d8600f3d9d62c0943b95138d64520b /Makefile.in | |
parent | b157701b17c38fe3f84aab6a43ed34d17e5c91d2 (diff) | |
download | nasm-274cda81f8f644c3e8b859f778e61af34fd6e776.tar.gz |
Use a hash to keep exactly one copy of each filename around
The old code for keeping track of source file name and line was
confused as hell about ownership of the strings, and it is pretty
clear we leaked that information all over the place.
Instead, use a hash table to keep a copy of each string as necessary,
and simply make references to a string pool that we keep until the end
of the assembly session.
This pool probably should be unified with the list of dependency
files, and so on, but that is for the development branch.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 4a5b3b08..1479a626 100644 --- a/Makefile.in +++ b/Makefile.in @@ -74,7 +74,7 @@ endif #-- Begin File Lists --# NASM = nasm.$(O) nasmlib.$(O) ver.$(O) \ - raa.$(O) saa.$(O) rbtree.$(O) \ + raa.$(O) saa.$(O) rbtree.$(O) srcfile.$(O) \ realpath.$(O) \ float.$(O) insnsa.$(O) insnsb.$(O) \ directiv.$(O) \ @@ -444,6 +444,7 @@ regflags.$(O): regflags.c compiler.h config.h directiv.h insnsi.h nasm.h \ regs.$(O): regs.c compiler.h config.h insnsi.h tables.h regvals.$(O): regvals.c compiler.h config.h insnsi.h tables.h saa.$(O): saa.c compiler.h config.h nasmlib.h saa.h +srcfile.$(O): srcfile.c compiler.h config.h hashtbl.h nasmlib.h stdscan.$(O): stdscan.c compiler.h config.h directiv.h iflag.h iflaggen.h \ insns.h insnsi.h nasm.h nasmlib.h opflags.h pptok.h preproc.h quote.h \ regs.h stdscan.h tables.h tokens.h |