Commit 09074fda by Neil Booth Committed by Neil Booth

cpplib.c: (_cpp_parse_assertion): Perform hash lookups based on full length of predicate.

	* cpplib.c: (_cpp_parse_assertion):  Perform hash lookups
	based on full length of predicate.

From-SVN: r34885
parent f9721d41
2000-07-06 Neil Booth <NeilB@earthling.net>
* cpplib.c: (_cpp_parse_assertion): Perform hash lookups
based on full length of predicate.
2000-07-06 Hans-Peter Nilsson <hp@axis.com> 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
* timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>. * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
......
...@@ -1328,7 +1328,7 @@ _cpp_parse_assertion (pfile, answerp) ...@@ -1328,7 +1328,7 @@ _cpp_parse_assertion (pfile, answerp)
/* Prefix '#' to get it out of macro namespace. */ /* Prefix '#' to get it out of macro namespace. */
sym[0] = '#'; sym[0] = '#';
memcpy (sym + 1, predicate->val.name.text, len); memcpy (sym + 1, predicate->val.name.text, len);
return cpp_lookup (pfile, sym, len); return cpp_lookup (pfile, sym, len + 1);
error: error:
FREE_ANSWER (answer); FREE_ANSWER (answer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment