mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 16:10:33 +01:00
Expand macro arguments before performing argument substitution.
As required by the C99 specification of the preprocessor. With this fix, tests 33 through 36 now pass.
This commit is contained in:
parent
0197e9b64f
commit
d5cd40343f
1 changed files with 5 additions and 4 deletions
|
|
@ -854,10 +854,11 @@ _glcpp_parser_expand_function_onto (glcpp_parser_t *parser,
|
|||
token_list_t *argument;
|
||||
argument = _argument_list_member_at (arguments,
|
||||
parameter_index);
|
||||
for (j = argument->head; j; j = j->next)
|
||||
{
|
||||
_token_list_append (substituted, j->token);
|
||||
}
|
||||
/* Before substituting, we expand the argument
|
||||
* tokens. */
|
||||
_glcpp_parser_expand_token_list_onto (parser,
|
||||
argument,
|
||||
substituted);
|
||||
} else {
|
||||
_token_list_append (substituted, i->token);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue