return 0;
}
} else {
- strcpy(context->error_msg, "expected either an identifier or `)'");
+ strcpy(context->error_msg, "expected either macro formal argument or `)'");
return -1;
}
for (;;) {
if (*first < last && input[*first].token != SL_PP_IDENTIFIER) {
- strcpy(context->error_msg, "expected an identifier");
+ strcpy(context->error_msg, "expected macro formal argument");
return -1;
}
if (*first < last) {
if (input[*first].token == SL_PP_COMMA) {
(*first)++;
+ skip_whitespace(input, first, last);
} else if (input[*first].token == SL_PP_RPAREN) {
(*first)++;
return 0;
first++;
}
if (macro_name == -1) {
- strcpy(context->error_msg, "expected an identifier");
+ strcpy(context->error_msg, "expected macro name");
return -1;
}