OSDN Git Service

Implement expansion of object-like macros.
authorCarl Worth <cworth@cworth.org>
Tue, 25 May 2010 22:24:59 +0000 (15:24 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 25 May 2010 22:24:59 +0000 (15:24 -0700)
commitae6517f4a83981ae363bbbfe439ec23e8deb04b1
tree317cb39be3fc40c3a62ff930c4f4566313c09559
parent9fb8b7a495c9dc6f9a62cf82300fae5925af92fc
Implement expansion of object-like macros.

For this we add an "active" string_list_t to the parser. This makes
the current expansion_list_t in the parser obsolete, but we don't
remove that yet.

With this change we can now start passing some actual tests, so we
turn on real testing in the test suite again. I expect to implement
things more or less in the same order as before, so the test suite now
halts on first error.

With this change the first 8 tests in the suite pass, (object-like
macros with chaining and recursion).
glcpp-parse.y
glcpp.h
tests/glcpp-test