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 /Mkfiles/openwcom.mak | |
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 'Mkfiles/openwcom.mak')
-rw-r--r-- | Mkfiles/openwcom.mak | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mkfiles/openwcom.mak b/Mkfiles/openwcom.mak index 7fb9ba51..3dffb117 100644 --- a/Mkfiles/openwcom.mak +++ b/Mkfiles/openwcom.mak @@ -47,7 +47,7 @@ X = .exe #-- Begin File Lists --# # Edit in Makefile.in, not here! 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) & @@ -399,6 +399,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 |