From 97b24714048235244d15d0992e905cdff43b93df Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Fri, 14 Oct 2005 14:47:40 +0000 Subject: [PATCH] adding more cases git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7652 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/typedef_struct.i | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Examples/test-suite/typedef_struct.i b/Examples/test-suite/typedef_struct.i index 08a2ec0a8..343e07bdd 100644 --- a/Examples/test-suite/typedef_struct.i +++ b/Examples/test-suite/typedef_struct.i @@ -1,9 +1,27 @@ %module typedef_struct -%inline { +%inline %{ typedef struct { int numpoints; } lineObj; typedef lineObj multipointObj; -} + + typedef struct { +#ifdef SWIG + %immutable; +#endif + char *filename; + int numfonts; +#ifdef SWIG + %mutable; +#endif + int* fonts; +#ifndef SWIG + void* map; +#endif + } fontSetObj; + +#define MS_NOOVERRIDE -1111 + +%}