Solaris fixes: delete pad and padname from thread.h and remove
Malcolm Beattie [Wed, 10 Sep 1997 13:56:50 +0000 (13:56 +0000)]
MUTEX_* stuff when malloc.c gets copied to x2p/malloc.c.

p4raw-id: //depot/perl@61

thread.h
x2p/Makefile.SH

index 655851d..06d5d89 100644 (file)
--- a/thread.h
+++ b/thread.h
@@ -126,8 +126,6 @@ struct thread {
     /* XXX What about magic variables such as $/, $? and so on? */
     HV *       Tdefstash;
     HV *       Tcurstash;
-    AV *       Tpad;
-    AV *       Tpadname;
 
     SV **      Ttmps_stack;
     I32                Ttmps_ix;
@@ -263,8 +261,6 @@ typedef struct condpair {
 #define Xpv            (thr->TXpv)
 #define defstash       (thr->Tdefstash)
 #define curstash       (thr->Tcurstash)
-#define pad            (thr->Tpad)
-#define padname                (thr->Tpadname)
 
 #define tmps_stack     (thr->Ttmps_stack)
 #define tmps_ix                (thr->Ttmps_ix)
index 0ca3ff3..0c9dfca 100755 (executable)
@@ -153,7 +153,8 @@ malloc.c: ../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/my_exit/exit/' \
+           -e 's/MUTEX_[A-Z_]*(&malloc_mutex);//'
 
 # AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
 $(obj):