Every time a macro is parsed, all of the string constants are put into the GlobalSymList.
They are not reused. This patch causes the parser to look up string contants by value and
reuse the symbol entry.
This is not optimal. In cases where there are lots of large string constants that are nearly the
same, it could be slow. Some sort of hash would lessen that situation.
Log in to post a comment.