summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Biggar <jon@sems.com>1996-09-16 16:37:48 -0700
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-09-16 16:37:48 -0700
commitc6ecf61fd8db79f1fc1b90463b6c61a4267ab923 (patch)
tree3a65fe37537db241987c84a5b58ed4bcefe7dc2d
parent69969c6f8dad38fedd2ed2c653a7948030e5ecf8 (diff)
downloadperl-c6ecf61fd8db79f1fc1b90463b6c61a4267ab923.tar.gz
Perl 5.003 bug when embedding in C++ program
The following patch is necessary in order to embed the Perl5.003 interpreter into a C++ program without getting prototype mismatch errors from the C++ compiler.
-rw-r--r--opcode.h4
-rwxr-xr-xopcode.pl4
2 files changed, 4 insertions, 4 deletions
diff --git a/opcode.h b/opcode.h
index b13849d8aa..ce83340aee 100644
--- a/opcode.h
+++ b/opcode.h
@@ -1776,9 +1776,9 @@ EXT OP * (*ppaddr[])() = {
#endif
#ifndef DOINIT
-EXT OP * (*check[])();
+EXT OP * (*check[]) _((OP *op));
#else
-EXT OP * (*check[])() = {
+EXT OP * (*check[]) _((OP *op)) = {
ck_null, /* null */
ck_null, /* stub */
ck_fun, /* scalar */
diff --git a/opcode.pl b/opcode.pl
index 50cf214821..9271cdd4fc 100755
--- a/opcode.pl
+++ b/opcode.pl
@@ -114,9 +114,9 @@ END
print <<END;
#ifndef DOINIT
-EXT OP * (*check[])();
+EXT OP * (*check[]) _((OP *op));
#else
-EXT OP * (*check[])() = {
+EXT OP * (*check[]) _((OP *op)) = {
END
for (@ops) {