PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/php/variables/example.i

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