Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: swig/Lib/windows.i

Issue 553095: Checkin swig binaries for win, linux and Mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « swig/Lib/wchar.i ('k') | swig/linux/swig » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* -----------------------------------------------------------------------------
2 * See the LICENSE file for information on copyright, usage and redistribution
3 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
4 *
5 * windows.i
6 *
7 * SWIG library file to support types found in windows.h as well as Microsoft
8 * integral type extensions. The types are set for 32 bit Windows.
9 * ----------------------------------------------------------------------------- */
10
11 // Support for non ISO (Windows) integral types
12 %apply unsigned char { unsigned __int8 };
13 %apply const unsigned char& { const unsigned __int8& };
14
15 %apply signed char { __int8 };
16 %apply const signed char& { const __int8& };
17
18 %apply unsigned short { unsigned __int16 };
19 %apply const unsigned short& { const unsigned __int16& };
20
21 %apply short { __int16 };
22 %apply const short& { const __int16& };
23
24 %apply unsigned int { unsigned __int32 };
25 %apply const unsigned int& { const unsigned __int32& };
26
27 %apply int { __int32 };
28 %apply const int& { const __int32& };
29
30 %apply unsigned long long { unsigned __int64 };
31 %apply const unsigned long long& { const unsigned __int64& };
32
33 %apply long long { __int64 };
34 %apply const long long& { const __int64& };
35
36
37 // Workaround Microsoft calling conventions
38 #define __cdecl
39 #define __fastcall
40 #define __far
41 #define __forceinline
42 #define __fortran
43 #define __inline
44 #define __pascal
45 #define __stdcall
46 #define __syscall
47 #define _cdecl
48 #define _fastcall
49 #define _inline
50 #define _pascal
51 #define _stdcall
52 #define WINAPI
53 #define __declspec(WINDOWS_EXTENDED_ATTRIBUTE)
54
55 #define __w64
56
57 // Types from windef.h
58 typedef unsigned long ULONG;
59 typedef ULONG *PULONG;
60 typedef unsigned short USHORT;
61 typedef USHORT *PUSHORT;
62 typedef unsigned char UCHAR;
63 typedef UCHAR *PUCHAR;
64 typedef char *PSZ;
65 typedef unsigned long DWORD;
66 typedef int BOOL;
67 typedef unsigned char BYTE;
68 typedef unsigned short WORD;
69 typedef float FLOAT;
70 typedef FLOAT *PFLOAT;
71 typedef BOOL *PBOOL;
72 typedef BOOL *LPBOOL;
73 typedef BYTE *PBYTE;
74 typedef BYTE *LPBYTE;
75 typedef int *PINT;
76 typedef int *LPINT;
77 typedef WORD *PWORD;
78 typedef WORD *LPWORD;
79 typedef long *LPLONG;
80 typedef DWORD *PDWORD;
81 typedef DWORD *LPDWORD;
82 typedef void *LPVOID;
83 typedef const void *LPCVOID;
84 typedef int INT;
85 typedef unsigned int UINT;
86 typedef unsigned int *PUINT;
87
88 // Types from basetsd.h
89 typedef signed char INT8, *PINT8;
90 typedef signed short INT16, *PINT16;
91 typedef signed int INT32, *PINT32;
92 typedef signed __int64 INT64, *PINT64;
93 typedef unsigned char UINT8, *PUINT8;
94 typedef unsigned short UINT16, *PUINT16;
95 typedef unsigned int UINT32, *PUINT32;
96 typedef unsigned __int64 UINT64, *PUINT64;
97 typedef signed int LONG32, *PLONG32;
98 typedef unsigned int ULONG32, *PULONG32;
99 typedef unsigned int DWORD32, *PDWORD32;
100 typedef __w64 int INT_PTR, *PINT_PTR;
101 typedef __w64 unsigned int UINT_PTR, *PUINT_PTR;
102 typedef __w64 long LONG_PTR, *PLONG_PTR;
103 typedef __w64 unsigned long ULONG_PTR, *PULONG_PTR;
104 typedef unsigned short UHALF_PTR, *PUHALF_PTR;
105 typedef short HALF_PTR, *PHALF_PTR;
106 typedef __w64 long SHANDLE_PTR;
107 typedef __w64 unsigned long HANDLE_PTR;
108 typedef ULONG_PTR SIZE_T, *PSIZE_T;
109 typedef LONG_PTR SSIZE_T, *PSSIZE_T;
110 typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR;
111 typedef __int64 LONG64, *PLONG64;
112 typedef unsigned __int64 ULONG64, *PULONG64;
113 typedef unsigned __int64 DWORD64, *PDWORD64;
114
115 // Types from winnt.h
116 typedef void *PVOID;
117 typedef void *PVOID64;
118 typedef char CHAR;
119 typedef short SHORT;
120 typedef long LONG;
121 typedef CHAR *PCHAR;
122 typedef CHAR *LPCH, *PCH;
123 typedef const CHAR *LPCCH, *PCCH;
124 typedef CHAR *NPSTR;
125 typedef CHAR *LPSTR, *PSTR;
126 typedef const CHAR *LPCSTR, *PCSTR;
127 typedef char TCHAR, *PTCHAR;
128 typedef unsigned char TBYTE , *PTBYTE ;
129 typedef LPSTR LPTCH, PTCH;
130 typedef LPSTR PTSTR, LPTSTR, PUTSTR, LPUTSTR;
131 typedef LPCSTR PCTSTR, LPCTSTR, PCUTSTR, LPCUTSTR;
132 typedef SHORT *PSHORT;
133 typedef LONG *PLONG;
134 typedef void *HANDLE;
135 typedef HANDLE *PHANDLE;
136 typedef BYTE FCHAR;
137 typedef WORD FSHORT;
138 typedef DWORD FLONG;
139 typedef LONG HRESULT;
140 typedef char CCHAR;
141 typedef DWORD LCID;
142 typedef PDWORD PLCID;
143 typedef WORD LANGID;
144 typedef __int64 LONGLONG;
145 typedef unsigned __int64 ULONGLONG;
146 typedef LONGLONG *PLONGLONG;
147 typedef ULONGLONG *PULONGLONG;
148 typedef ULONGLONG DWORDLONG;
149 typedef DWORDLONG *PDWORDLONG;
150 typedef BYTE BOOLEAN;
151 typedef BOOLEAN *PBOOLEAN;
152
OLDNEW
« no previous file with comments | « swig/Lib/wchar.i ('k') | swig/linux/swig » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698