Remove expand_macros_in_string()

Remove the now-unused expand_macros_in_string() function.
This commit is contained in:
H. Peter Anvin 2008-06-10 18:29:11 -07:00
parent 7df0417e58
commit 7b471fada8

View File

@ -1699,20 +1699,6 @@ fail:
return -1; return -1;
} }
/*
* Expand macros in a string. Used in %error directives (and it should
* almost certainly be removed from there, too.)
*
* First tokenize the string, apply "expand_smacro" and then de-tokenize back.
* The returned variable should ALWAYS be freed after usage.
*/
void expand_macros_in_string(char **p)
{
Token *line = tokenize(*p);
line = expand_smacro(line);
*p = detoken(line, false);
}
/* /*
* Common code for defining an smacro * Common code for defining an smacro
*/ */