]> granicus.if.org Git - mutt/commitdiff
Remove EXTRACT_MACROS check from EXTRACT_NUMBER in regex.
authorKevin McCarthy <kevin@8t8.us>
Tue, 28 May 2019 16:38:38 +0000 (09:38 -0700)
committerKevin McCarthy <kevin@8t8.us>
Tue, 28 May 2019 16:38:38 +0000 (09:38 -0700)
Commit 367b1135 converted EXTRACT_NUMBER to always call a function, to
enable the use of parameter types and local variables.  In doing this
it removed the separate DEBUG implementation.

The EXTRACT_MACROS check was accidentally left in, but no longer makes
sense outside of the DEBUG.

regex.c

diff --git a/regex.c b/regex.c
index f6bc8fbf08636aa1956a81e00cd20daf09db5b01..75895aa2700d402105a0218c359e5c2f8731657b 100644 (file)
--- a/regex.c
+++ b/regex.c
@@ -555,10 +555,7 @@ extract_number (dest, source)
   *dest = b1 | (b2 << 8) | mask;
 }
 
-#ifndef EXTRACT_MACROS /* To debug the macros.  */
-#undef EXTRACT_NUMBER
 #define EXTRACT_NUMBER(dest, src) extract_number ((unsigned int *)&dest, src)
-#endif /* not EXTRACT_MACROS */
 
 /* Same as EXTRACT_NUMBER, except increment SOURCE to after the number.
    SOURCE must be an lvalue.  */