~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Examples/test-suite/typedef_struct.i

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%module typedef_struct
 
2
 
 
3
%inline %{
 
4
  typedef struct {
 
5
    int numpoints;
 
6
  } LineObj;
 
7
  
 
8
  typedef LineObj MultipointObj;
 
9
  
 
10
  typedef struct {
 
11
#ifdef SWIG
 
12
    %immutable;
 
13
#endif
 
14
    char *filename; 
 
15
    int numfonts;
 
16
#ifdef SWIG
 
17
    %mutable;
 
18
#endif
 
19
    int* fonts;
 
20
#ifndef SWIG
 
21
    void* map;
 
22
#endif
 
23
  } FontSetObj;
 
24
 
 
25
#define MS_NOOVERRIDE -1111
 
26
 
 
27
%}