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

« back to all changes in this revision

Viewing changes to Examples/php/variables/example.i

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2009-11-15 14:00:28 UTC
  • mfrom: (1.2.9 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091115140028-me7amr2rie8zz1xn
Tags: 1.3.40-2ubuntu1
* Merge from Debian testing (LP: #356529), remaining changes:
  - Drop libchicken-dev from the build-depends (it's in universe)
  - Remove Pike from package description and from configure flags
  - drop "--without-mzscheme", we don't have it in our build-depends
  - use php-config5
  - Clean Runtime/ as well.
  - debian/rules (clean): Remove Lib/ocaml/swigp4.ml.
* debian/rules: Remove hardcoded python version.
* Remove upper limit for python from Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* File : example.i */
 
2
%module example
 
3
%{
 
4
#include "example.h"
 
5
%}
 
6
 
 
7
/* Some global variable declarations */
 
8
extern int              ivar;
 
9
extern short            svar;
 
10
extern long             lvar;
 
11
extern unsigned int     uivar;
 
12
extern unsigned short   usvar;
 
13
extern unsigned long    ulvar;
 
14
extern signed char      scvar;
 
15
extern unsigned char    ucvar;
 
16
extern char             cvar;
 
17
extern float            fvar;
 
18
extern double           dvar;
 
19
extern char            *strvar;
 
20
extern const char       cstrvar[];
 
21
extern int             *iptrvar;
 
22
extern char             name[5];
 
23
 
 
24
extern Point           *ptptr;
 
25
extern Point            pt;
 
26
 
 
27
/* Some read-only variables */
 
28
 
 
29
%immutable;
 
30
extern int  status;
 
31
extern char path[256];
 
32
%mutable;
 
33
 
 
34
/* Some helper functions to make it easier to test */
 
35
extern void  print_vars();
 
36
extern int  *new_int(int value);
 
37
 
 
38
extern Point *new_Point(int x, int y);
 
39
extern char  *Point_print(Point *p);
 
40
extern void  pt_print();
 
41
 
 
42
 
 
43
 
 
44