summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Cozens <simon@netthink.co.uk>2001-06-03 14:51:46 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-03 16:04:26 +0000
commit1cadc447bef52741928814e16ae3e1f6e585d954 (patch)
treebf8eddfbad783807ef863cfd7e1d14f40daabfb4
parent6d79cad27a2b87dccc1697da50ccc1547477bc4c (diff)
downloadperl-1cadc447bef52741928814e16ae3e1f6e585d954.tar.gz
APIfy op_clear
Message-ID: <20010603135146.A9984@deep-dark-truthful-mirror.pmb.ox.ac.uk> (despite the subject line, op_null is APIfied by the patch) p4raw-id: //depot/perl@10400
-rwxr-xr-xembed.pl2
-rw-r--r--global.sym1
-rw-r--r--objXSUB.h12
-rw-r--r--perlapi.c15
4 files changed, 27 insertions, 3 deletions
diff --git a/embed.pl b/embed.pl
index a36ef7811d..c8ea257a33 100755
--- a/embed.pl
+++ b/embed.pl
@@ -1673,7 +1673,7 @@ p |I32 |keyword |char* d|I32 len
Ap |void |leave_scope |I32 base
p |void |lex_end
p |void |lex_start |SV* line
-p |void |op_null |OP* o
+Ap |void |op_null |OP* o
p |void |op_clear |OP* o
p |OP* |linklist |OP* o
p |OP* |list |OP* o
diff --git a/global.sym b/global.sym
index b8bfb2c1ad..14d9ef0376 100644
--- a/global.sym
+++ b/global.sym
@@ -207,6 +207,7 @@ Perl_is_utf8_punct
Perl_is_utf8_xdigit
Perl_is_utf8_mark
Perl_leave_scope
+Perl_op_null
Perl_load_module
Perl_vload_module
Perl_looks_like_number
diff --git a/objXSUB.h b/objXSUB.h
index d3ca5272b7..3a8e3d461b 100644
--- a/objXSUB.h
+++ b/objXSUB.h
@@ -795,6 +795,10 @@
#define Perl_leave_scope pPerl->Perl_leave_scope
#undef leave_scope
#define leave_scope Perl_leave_scope
+#undef Perl_op_null
+#define Perl_op_null pPerl->Perl_op_null
+#undef op_null
+#define op_null Perl_op_null
#undef Perl_load_module
#define Perl_load_module pPerl->Perl_load_module
#undef load_module
@@ -2359,15 +2363,19 @@
# endif
#endif
#if defined(PERL_IN_REGCOMP_C) || defined(PERL_DECL_PROT)
+# ifdef DEBUGGING
+# endif
#endif
#if defined(PERL_IN_REGEXEC_C) || defined(PERL_DECL_PROT)
#endif
#if defined(PERL_IN_RUN_C) || defined(PERL_DECL_PROT)
+# ifdef DEBUGGING
+# endif
#endif
#if defined(PERL_IN_SCOPE_C) || defined(PERL_DECL_PROT)
#endif
#if defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT)
-# if defined(DEBUGGING)
+# ifdef DEBUGGING
# endif
# if !defined(NV_PRESERVES_UV)
# endif
@@ -2375,6 +2383,8 @@
# endif
#endif
#if defined(PERL_IN_TOKE_C) || defined(PERL_DECL_PROT)
+# if defined(DEBUGGING)
+# endif
#if 0
#endif
# if defined(CRIPPLED_CC)
diff --git a/perlapi.c b/perlapi.c
index a04ab223cf..5cb3c44104 100644
--- a/perlapi.c
+++ b/perlapi.c
@@ -1475,6 +1475,13 @@ Perl_leave_scope(pTHXo_ I32 base)
((CPerlObj*)pPerl)->Perl_leave_scope(base);
}
+#undef Perl_op_null
+void
+Perl_op_null(pTHXo_ OP* o)
+{
+ ((CPerlObj*)pPerl)->Perl_op_null(o);
+}
+
#undef Perl_load_module
void
Perl_load_module(pTHXo_ U32 flags, SV* name, SV* ver, ...)
@@ -4215,15 +4222,19 @@ Perl_sys_intern_init(pTHXo)
# endif
#endif
#if defined(PERL_IN_REGCOMP_C) || defined(PERL_DECL_PROT)
+# ifdef DEBUGGING
+# endif
#endif
#if defined(PERL_IN_REGEXEC_C) || defined(PERL_DECL_PROT)
#endif
#if defined(PERL_IN_RUN_C) || defined(PERL_DECL_PROT)
+# ifdef DEBUGGING
+# endif
#endif
#if defined(PERL_IN_SCOPE_C) || defined(PERL_DECL_PROT)
#endif
#if defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT)
-# if defined(DEBUGGING)
+# ifdef DEBUGGING
# endif
# if !defined(NV_PRESERVES_UV)
# endif
@@ -4231,6 +4242,8 @@ Perl_sys_intern_init(pTHXo)
# endif
#endif
#if defined(PERL_IN_TOKE_C) || defined(PERL_DECL_PROT)
+# if defined(DEBUGGING)
+# endif
#if 0
#endif
# if defined(CRIPPLED_CC)