diff --git a/Examples/php/cpointer/example.i b/Examples/php/cpointer/example.i index 52e6df190..c61d92858 100644 --- a/Examples/php/cpointer/example.i +++ b/Examples/php/cpointer/example.i @@ -1,6 +1,11 @@ /* File : example.i */ %module example +%{ +extern void add(int *, int *, int *); +extern void sub(int *, int *, int *); +%} + /* This example illustrates a couple of different techniques for manipulating C pointers */ diff --git a/Examples/php/pointer/example.i b/Examples/php/pointer/example.i index c14b94189..1f0059406 100644 --- a/Examples/php/pointer/example.i +++ b/Examples/php/pointer/example.i @@ -1,6 +1,12 @@ /* File : example.i */ %module example +%{ +extern void add(double *, double *, double *); +extern void sub(int *, int *, int *); +extern int divide(int, int, int *); +%} + /* This example illustrates a couple of different techniques for manipulating C pointers */ diff --git a/Examples/php/simple/example.i b/Examples/php/simple/example.i index af4ff08a7..9d4e22aa9 100644 --- a/Examples/php/simple/example.i +++ b/Examples/php/simple/example.i @@ -1,10 +1,8 @@ /* File : example.i */ %module example -%{ - extern double Foo; -%} - +%inline %{ +extern int gcd(int x, int y); extern double Foo; void print_Foo(); -int gcd(int x, int y); +%}