return false;
}
+static bool ftepp_macro_expand(ftepp_t *ftepp, ppmacro *macro, macroparam *params)
+{
+ return true;
+}
+
static bool ftepp_macro_call(ftepp_t *ftepp, ppmacro *macro)
{
size_t o;
goto cleanup;
}
-
- ftepp_out(ftepp, "Parsed macro parameters", false);
- goto cleanup;
+ if (!ftepp_macro_expand(ftepp, macro, params))
+ retval = false;
cleanup:
for (o = 0; o < vec_size(params); ++o)
case TOKEN_EOF:
ftepp_error(ftepp, "missing newline at end of file", ftepp_tokval(ftepp));
return false;
+
+ /* Builtins! Don't forget the builtins! */
+ case TOKEN_INTCONST:
+ case TOKEN_FLOATCONST:
+ ftepp_out(ftepp, "#", false);
+ return true;
}
if (!ftepp_skipspace(ftepp))
return false;
{
if (ftepp->token >= TOKEN_EOF)
break;
-
+#if 0
ftepp->newline = newline;
newline = false;
+#else
+ /* For the sake of FTE compatibility... FU, really */
+ ftepp->newline = newline = true;
+#endif
switch (ftepp->token) {
case TOKEN_KEYWORD: