Fix to handle chained #define directives.
authorCarl Worth <cworth@cworth.org>
Tue, 11 May 2010 19:30:09 +0000 (12:30 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 11 May 2010 19:30:09 +0000 (12:30 -0700)
commitc6d5af335121f6027cc46ef9c5aa77aa4e5906ca
tree67f4d76defb0631c8c1b7828bcf50b5caa2873e4
parent49206ef4c8adba5427e9d9b5e0dfc11345262890
Fix to handle chained #define directives.

The fix is as simple as adding a loop to continue to lookup values
in the hash table until one of the following termination conditions:

1. The token we look up has no definition

2. We get back the original symbol we started with

This second termination condition prevents infinite iteration.
glcpp-parse.y