From: Nicholas Clark Date: Thu, 8 Dec 2011 10:12:25 +0000 (+0100) Subject: Remove commented-out "support" for perl's malloc with x2p. X-Git-Tag: accepted/trunk/20130322.191538~1798 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2e403ce41fd22d76714cfcbbe2be776a5c37c01;p=platform%2Fupstream%2Fperl.git Remove commented-out "support" for perl's malloc with x2p. In 1998 commit 30e2e4257067d5f8 stated temporarily disable perl malloc for a2p until we clean up conflicting malloc() declarations everywhere and nothing has changed since. 13 years later, no-one has reported problems, so it's safe to remove it. --- diff --git a/malloc.c b/malloc.c index 64613ee..60007b5 100644 --- a/malloc.c +++ b/malloc.c @@ -328,10 +328,7 @@ # define PERL_MAYBE_ALIVE 1 # endif #else -# ifdef PERL_FOR_X2P -# include "../EXTERN.h" -# include "../perl.h" -# else + # include # include # include @@ -384,7 +381,7 @@ # ifndef MEM_ALIGNBYTES # define MEM_ALIGNBYTES 4 # endif -# endif + # ifndef croak /* make depend */ # define croak(mess, arg) (warn((mess), (arg)), exit(1)) # endif diff --git a/x2p/Makefile.SH b/x2p/Makefile.SH index 800f583..1df26d5 100755 --- a/x2p/Makefile.SH +++ b/x2p/Makefile.SH @@ -42,9 +42,6 @@ cat >Makefile < a2p.fuzz -depend: $(mallocsrc) ../makedepend +depend: ../makedepend sh ../makedepend MAKE=$(MAKE) clist: @@ -189,14 +186,6 @@ find2perl: find2perl.PL ../config.sh s2p: s2p.PL ../config.sh -malloc.c: ../malloc.c - rm -f malloc.c - sed <../malloc.c >malloc.c \ - -e 's/"EXTERN.h"/"..\/EXTERN.h"/' \ - -e 's/"perl.h"/"..\/perl.h"/' \ - -e 's/my_exit/exit/' \ - -e 's/MUTEX_[A-Z_]*(&PL_malloc_mutex);//' - # AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE $(obj): @ echo "You haven't done a "'"make depend" yet!'; exit 1