Make php example C90 compliant

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-12-15 23:56:27 +00:00
commit 87ee6da365
3 changed files with 14 additions and 5 deletions

View file

@ -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 */

View file

@ -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 */

View file

@ -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);
%}