In the PERL_IMPLICIT_SYS section in perl_free(), use fewer CPP directives.
authorNicholas Clark <nick@ccl4.org>
Mon, 18 Jul 2011 18:49:28 +0000 (19:49 +0100)
committerNicholas Clark <nick@ccl4.org>
Tue, 2 Jul 2013 20:05:05 +0000 (22:05 +0200)
The diff is actually confusing to look at - the code itself makes things a
lot clearer:

#    ifdef NETWARE
        void *host = nw_internal_host;
        PerlMem_free(aTHXx);
        nw_delete_internal_host(host);
#    else
        void *host = w32_internal_host;
        PerlMem_free(aTHXx);
        win32_delete_internal_host(host);
#    endif

perl.c

diff --git a/perl.c b/perl.c
index feb031b..bad66f5 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -1347,13 +1347,11 @@ perl_free(pTHXx)
     {
 #    ifdef NETWARE
        void *host = nw_internal_host;
-#    else
-       void *host = w32_internal_host;
-#    endif
        PerlMem_free(aTHXx);
-#    ifdef NETWARE
        nw_delete_internal_host(host);
 #    else
+       void *host = w32_internal_host;
+       PerlMem_free(aTHXx);
        win32_delete_internal_host(host);
 #    endif
     }