summaryrefslogtreecommitdiff
path: root/opcode.pl
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 /opcode.pl
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.
Diffstat (limited to 'opcode.pl')
-rwxr-xr-xopcode.pl4
1 files changed, 2 insertions, 2 deletions
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) {