summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-07-18 19:49:28 +0100
committerNicholas Clark <nick@ccl4.org>2013-07-02 22:05:05 +0200
commitbdb504800671ce2688cdfd83ea9009b88b2d5164 (patch)
tree9c1746d43a9ae6c7b588576634a43fd8c2c2c1da /perl.c
parentfe8266635e349641571e2ce349be3cc30e7bc51b (diff)
downloadperl-bdb504800671ce2688cdfd83ea9009b88b2d5164.tar.gz
In the PERL_IMPLICIT_SYS section in perl_free(), use fewer CPP directives.
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
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/perl.c b/perl.c
index feb031b7d3..bad66f5e01 100644
--- 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
}