summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-06-23 10:50:10 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-06-23 10:50:10 +0000
commit066ef5b548575efffe272b7363a2f5050ebd7e2d (patch)
tree09ca6ef3162bdf047c8476dad3f3bb9067b7c150 /perl.c
parentcb68f92dafee55e318e6fa14f60158f7b7d20a65 (diff)
downloadperl-066ef5b548575efffe272b7363a2f5050ebd7e2d.tar.gz
more MULTIPLICITY tweaks
p4raw-id: //depot/perl@1206
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c37
1 files changed, 25 insertions, 12 deletions
diff --git a/perl.c b/perl.c
index 084a1c3e87..43a00706ae 100644
--- a/perl.c
+++ b/perl.c
@@ -1780,7 +1780,7 @@ STATIC void
init_interp(void)
{
-#if 0
+#ifdef PERL_OBJECT /* XXX kludge */
#define I_REINIT \
STMT_START { \
chopset = " \n-"; \
@@ -1812,19 +1812,32 @@ init_interp(void)
rsfp = Nullfp; \
rsfp_filters= Nullav; \
} STMT_END
+#else
+# ifdef MULTIPLICITY
+# define PERLVAR(var,type)
+# define PERLVARI(var,type,init) curinterp->var = init;
+# define PERLVARIC(var,type,init) curinterp->var = init;
+# include "intrpvar.h"
+# ifndef USE_THREADS
+# include "thrdvar.h"
+# endif
+# undef PERLVAR
+# undef PERLVARI
+# undef PERLVARIC
+# else
+# define PERLVAR(var,type)
+# define PERLVARI(var,type,init) var = init;
+# define PERLVARIC(var,type,init) var = init;
+# include "intrpvar.h"
+# ifndef USE_THREADS
+# include "thrdvar.h"
+# endif
+# undef PERLVAR
+# undef PERLVARI
+# undef PERLVARIC
+# endif
#endif
-#define PERLVAR(var,type)
-#define PERLVARI(var,type,init) curinterp->var = init;
-#define PERLVARIC(var,type,init) curinterp->var = init;
-#include "intrpvar.h"
-#ifndef USE_THREADS
-# include "thrdvar.h"
-#endif
-#undef PERLVAR
-#undef PERLVARI
-#undef PERLVARIC
-
}
STATIC void