From 7b471fada8697930e4bdaff50fe51caa2798815f Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 10 Jun 2008 18:29:11 -0700 Subject: [PATCH] Remove expand_macros_in_string() Remove the now-unused expand_macros_in_string() function. --- preproc.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/preproc.c b/preproc.c index 04e50b1..5bdd32c 100644 --- a/preproc.c +++ b/preproc.c @@ -1700,20 +1700,6 @@ fail: } /* - * 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 */ static bool define_smacro(Context *ctx, char *mname, bool casesense, -- 2.7.4