Some refactoring of the preprocessor, it'll simplify my next commits.

This commit is contained in:
Roberto Raggi
2009-03-02 19:03:07 +01:00
parent f96d8ff9e0
commit ebe17889f4
4 changed files with 228 additions and 196 deletions

View File

@@ -69,8 +69,14 @@ const QByteArray *MacroExpander::resolve_formal(const QByteArray &__name)
return 0;
}
const char *MacroExpander::operator () (const char *__first, const char *__last,
QByteArray *__result)
const char *MacroExpander::operator()(const char *first, const char *last,
QByteArray *result)
{
return expand(first, last, result);
}
const char *MacroExpander::expand(const char *__first, const char *__last,
QByteArray *__result)
{
generated_lines = 0;
__first = skip_blanks (__first, __last);