OSDN Git Service

Add support for the #undef macro.
authorCarl Worth <cworth@cworth.org>
Wed, 12 May 2010 20:11:50 +0000 (13:11 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 12 May 2010 20:11:50 +0000 (13:11 -0700)
commitcd27e6413a683d3ba1763ec68edfb1ff13193fc3
tree0d331b3446bc56f18f4003e90e8657fcc8b73dbe
parent7bdd1f36d9f238e6af4846d46b9dd30fffc772a5
Add support for the #undef macro.

This isn't ideal for two reasons:

1. There's a bunch of stateful redundancy in the lexer that should be
   cleaned up.

2. The hash table does not provide a mechanism to delete an entry, so
   we waste memory to add a new NULL entry in front of the existing
   entry with the same key.

But this does at least work, (it passes the recently added undef test
case).
glcpp-lex.l
glcpp-parse.y