Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / share / swig / 1.3.26 / modula3 / typemaps.i
CommitLineData
920dae64
AT
1\r
2/* These typemaps will eventually probably maybe make their way into named typemaps\r
3 * OUTPUT * and OUTPUT & as they currently break functions that return a pointer or \r
4 * reference. */\r
5\r
6%typemap(ctype) bool *, bool & "bool *"\r
7%typemap(ctype) char & "char *"\r
8%typemap(ctype) signed char *, signed char & "signed char *"\r
9%typemap(ctype) unsigned char *, unsigned char & "unsigned short *"\r
10%typemap(ctype) short *, short & "short *"\r
11%typemap(ctype) unsigned short *, unsigned short & "unsigned short *"\r
12%typemap(ctype) int *, int & "int *"\r
13%typemap(ctype) unsigned int *, unsigned int & "unsigned int *"\r
14%typemap(ctype) long *, long & "long *"\r
15%typemap(ctype) unsigned long *, unsigned long & "unsigned long *"\r
16%typemap(ctype) long long *, long long & "long long *"\r
17%typemap(ctype) unsigned long long *, unsigned long long & "unsigned long long *"\r
18%typemap(ctype) float *, float & "float *"\r
19%typemap(ctype) double *, double & "double *"\r
20\r
21%typemap(imtype) bool *, bool & "ref bool"\r
22%typemap(imtype) char & "ref char"\r
23%typemap(imtype) signed char *, signed char & "ref sbyte"\r
24%typemap(imtype) unsigned char *, unsigned char & "ref byte"\r
25%typemap(imtype) short *, short & "ref short"\r
26%typemap(imtype) unsigned short *, unsigned short & "ref ushort"\r
27%typemap(imtype) int *, int & "ref int"\r
28%typemap(imtype) unsigned int *, unsigned int & "ref uint"\r
29%typemap(imtype) long *, long & "ref int"\r
30%typemap(imtype) unsigned long *, unsigned long & "ref uint"\r
31%typemap(imtype) long long *, long long & "ref long"\r
32%typemap(imtype) unsigned long long *, unsigned long long & "ref ulong"\r
33%typemap(imtype) float *, float & "ref float"\r
34%typemap(imtype) double *, double & "ref double"\r
35\r
36%typemap(cstype) bool *, bool & "ref bool"\r
37%typemap(cstype) char & "ref char"\r
38%typemap(cstype) signed char *, signed char & "ref sbyte"\r
39%typemap(cstype) unsigned char *, unsigned char & "ref byte"\r
40%typemap(cstype) short *, short & "ref short"\r
41%typemap(cstype) unsigned short *, unsigned short & "ref ushort"\r
42%typemap(cstype) int *, int & "ref int"\r
43%typemap(cstype) unsigned int *, unsigned int & "ref uint"\r
44%typemap(cstype) long *, long & "ref int"\r
45%typemap(cstype) unsigned long *, unsigned long & "ref uint"\r
46%typemap(cstype) long long *, long long & "ref long"\r
47%typemap(cstype) unsigned long long *, unsigned long long & "ref ulong"\r
48%typemap(cstype) float *, float & "ref float"\r
49%typemap(cstype) double *, double & "ref double"\r
50\r
51%typemap(csin) bool *, bool &,\r
52 char &,\r
53 signed char *, signed char &,\r
54 unsigned char *, unsigned char &,\r
55 short *, short &,\r
56 unsigned short *, unsigned short &,\r
57 int *, int &,\r
58 unsigned int *, unsigned int &,\r
59 long *, long &,\r
60 unsigned long *, unsigned long &,\r
61 long long *, long long &,\r
62 unsigned long long *, unsigned long long &,\r
63 float *, float &,\r
64 double *, double &\r
65 "ref $csinput"\r
66\r