fix RX_MATCH_COPY_FREE() on win32
authorDavid Mitchell <davem@iabyn.com>
Thu, 27 Jul 2017 19:17:43 +0000 (20:17 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 27 Jul 2017 19:17:43 +0000 (20:17 +0100)
My recent commit made RX_MATCH_COPY_FREE() a wrapper for
RXp_MATCH_COPY_FREE() but it didn't build on VC 2003.

Spotted by bulk88.

regexp.h

index 39700e1..2b8ba89 100644 (file)
--- a/regexp.h
+++ b/regexp.h
@@ -562,7 +562,7 @@ and check for NULL.
            RXp_MATCH_COPIED_off(prog); \
        }} STMT_END
 #endif
-#define RX_MATCH_COPY_FREE(rx_sv)       (RXp_MATCH_COPY_FREE(ReANY(rx_sv)))
+#define RX_MATCH_COPY_FREE(rx_sv)       RXp_MATCH_COPY_FREE(ReANY(rx_sv))
 
 #define RXp_MATCH_UTF8(prog)            (RXp_EXTFLAGS(prog) & RXf_MATCH_UTF8)
 #define RX_MATCH_UTF8(rx_sv)            (RX_EXTFLAGS(rx_sv) & RXf_MATCH_UTF8)