From dcf0727ee189fc9e1978400a8546cd2f11efbc05 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 31 Jan 2006 06:16:41 +0000 Subject: [PATCH] add for malloc and lua git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8657 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/arrays.i | 3 +++ SWIG/Examples/test-suite/lextype.i | 3 +++ SWIG/Examples/test-suite/newobject2.i | 4 ++++ SWIG/Examples/test-suite/overload_extend.i | 4 ++++ SWIG/Examples/test-suite/private_assign.i | 3 +++ 5 files changed, 17 insertions(+) diff --git a/SWIG/Examples/test-suite/arrays.i b/SWIG/Examples/test-suite/arrays.i index 37a4f0029..decce7415 100644 --- a/SWIG/Examples/test-suite/arrays.i +++ b/SWIG/Examples/test-suite/arrays.i @@ -3,6 +3,9 @@ This test case tests that various types of arrays are working. */ %module arrays +%{ +#include +%} %inline %{ #define ARRAY_LEN 2 diff --git a/SWIG/Examples/test-suite/lextype.i b/SWIG/Examples/test-suite/lextype.i index 5128cbaa4..0c0ef66fe 100644 --- a/SWIG/Examples/test-suite/lextype.i +++ b/SWIG/Examples/test-suite/lextype.i @@ -23,6 +23,9 @@ code is not functioning properly it will fail to compile. */ %module lextype +%{ +#include +%} %typemap(in) Animal () { diff --git a/SWIG/Examples/test-suite/newobject2.i b/SWIG/Examples/test-suite/newobject2.i index f0c43edeb..92b997e5d 100644 --- a/SWIG/Examples/test-suite/newobject2.i +++ b/SWIG/Examples/test-suite/newobject2.i @@ -6,6 +6,10 @@ %module newobject2 +%{ +#include +%} + %{ /* Global initialization (not wrapped) */ int g_fooCount = 0; diff --git a/SWIG/Examples/test-suite/overload_extend.i b/SWIG/Examples/test-suite/overload_extend.i index 70225c847..6199d9be3 100644 --- a/SWIG/Examples/test-suite/overload_extend.i +++ b/SWIG/Examples/test-suite/overload_extend.i @@ -1,6 +1,10 @@ %module overload_extend #ifndef __cplusplus +%{ +#include +%} + %typemap(default) double y "$1=1000;"; #endif diff --git a/SWIG/Examples/test-suite/private_assign.i b/SWIG/Examples/test-suite/private_assign.i index ce1258e16..acc4d0bc9 100644 --- a/SWIG/Examples/test-suite/private_assign.i +++ b/SWIG/Examples/test-suite/private_assign.i @@ -3,6 +3,9 @@ // objects that have complicated state. %module private_assign +%{ +#include +%} %inline %{ class Foo {