summaryrefslogtreecommitdiff
path: root/Examples/perl5/pointer
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2005-06-28 21:14:24 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2005-06-28 21:14:24 +0000
commitc47c930f596b5f2142dfc53ae2be00e344d64d82 (patch)
tree34736be9e114135577559f419fba30387c16cf70 /Examples/perl5/pointer
parentc838d83d2cd2050d6f583158dc4818554e3adb95 (diff)
downloadswig-c47c930f596b5f2142dfc53ae2be00e344d64d82.tar.gz
fix extern declarations
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/perl5/pointer')
-rw-r--r--Examples/perl5/pointer/example.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/Examples/perl5/pointer/example.i b/Examples/perl5/pointer/example.i
index 4483b0f77..a8ac79499 100644
--- a/Examples/perl5/pointer/example.i
+++ b/Examples/perl5/pointer/example.i
@@ -1,6 +1,12 @@
/* File : example.i */
%module example
+%{
+extern void add(int *, int *, int *);
+extern void sub(int *, int *, int *);
+extern int divide(int, int, int *);
+%}
+
/* This example illustrates a couple of different techniques
for manipulating C pointers */