diff --git a/SWIG/Examples/test-suite/python/callback.i b/SWIG/Examples/test-suite/python/callback.i index a71366439..c4d50d3fe 100644 --- a/SWIG/Examples/test-suite/python/callback.i +++ b/SWIG/Examples/test-suite/python/callback.i @@ -12,6 +12,10 @@ return a; } + int foof(int a) { + return 3*a; + } + struct A { static int bar(int a) { @@ -23,12 +27,9 @@ return -a; } - friend int foof(int a) - { - return 3*a; - } + //friend int foof(int a); }; - + extern "C" int foobar(int a, int (*pf)(int a)) { return pf(a); diff --git a/SWIG/Examples/test-suite/template_default.i b/SWIG/Examples/test-suite/template_default.i index 1da1765a2..54df21b45 100644 --- a/SWIG/Examples/test-suite/template_default.i +++ b/SWIG/Examples/test-suite/template_default.i @@ -181,7 +181,10 @@ namespace ns1 { typedef void (*TFunc2)(CTemplate arg); // OK typedef void (*TFunc3)(CTemplate* arg); // OK - int foo(TFunc1 a, TFunc2 b, TFunc3 c); + int foo(TFunc1 a, TFunc2 b, TFunc3 c) + { + return 0; + } } %}