mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-13 17:57:12 +08:00
Remove expand_macros_in_string()
Remove the now-unused expand_macros_in_string() function.
This commit is contained in:
parent
7df0417e58
commit
7b471fada8
14
preproc.c
14
preproc.c
@ -1699,20 +1699,6 @@ fail:
|
||||
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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user