From 55507ac1d99efa7f407df8ebcf9f6683532679f8 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 24 Apr 2020 12:04:34 -0600 Subject: [PATCH] regcomp.c: Don't repeat macro definition Use a macro from within another macro instead of repeating the expansion of it. --- regcomp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/regcomp.c b/regcomp.c index 9fdc5e5..addf375 100644 --- a/regcomp.c +++ b/regcomp.c @@ -370,8 +370,7 @@ struct RExC_state_t { RExC_naughty += RExC_naughty / (exp) + (add) #define ISMULT1(c) ((c) == '*' || (c) == '+' || (c) == '?') -#define ISMULT2(s) ((*s) == '*' || (*s) == '+' || (*s) == '?' || \ - ((*s) == '{' && regcurly(s))) +#define ISMULT2(s) (ISMULT1(*s) || ((*s) == '{' && regcurly(s))) /* * Flags to be passed up and down. -- 1.8.3.1