]>
Commit | Line | Data |
---|---|---|
c368d904 RD |
1 | /* |
2 | * FILE : src/msw/streams.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
c368d904 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
c368d904 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initstreamsc | |
55 | ||
56 | #define SWIG_name "streamsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/stream.h> | |
60 | #include <wx/list.h> | |
61 | ||
c368d904 RD |
62 | |
63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | ||
e0672e2f | 67 | if (!target) { |
c368d904 | 68 | target = o; |
e0672e2f | 69 | } else if (target == Py_None) { |
c368d904 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
e0672e2f | 72 | } else { |
c368d904 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
e0672e2f RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
c368d904 RD |
80 | |
81 | o2 = target; | |
e0672e2f RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
c368d904 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
794c5cb1 RD |
89 | #if PYTHON_API_VERSION >= 1009 |
90 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
91 | #else | |
0122b7e3 | 92 | static char* wxStringErrorMsg = "String type required"; |
794c5cb1 | 93 | #endif |
c368d904 RD |
94 | #ifdef __cplusplus |
95 | extern "C" { | |
96 | #endif | |
97 | static wxPyInputStream *new_wxPyInputStream(PyObject *p) { | |
f74ff5ef RD |
98 | wxInputStream* wxis = wxPyCBInputStream::create(p); |
99 | if (wxis) | |
100 | return new wxPyInputStream(wxis); | |
c368d904 RD |
101 | else |
102 | return NULL; | |
103 | } | |
104 | ||
105 | static PyObject *_wrap_new_wxInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
106 | PyObject * _resultobj; | |
107 | wxPyInputStream * _result; | |
108 | PyObject * _arg0; | |
109 | PyObject * _obj0 = 0; | |
110 | char *_kwnames[] = { "p", NULL }; | |
9416aa89 | 111 | char _ptemp[128]; |
c368d904 RD |
112 | |
113 | self = self; | |
114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxInputStream",_kwnames,&_obj0)) | |
115 | return NULL; | |
116 | { | |
117 | _arg0 = _obj0; | |
118 | } | |
119 | { | |
4268f798 | 120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
121 | _result = (wxPyInputStream *)new_wxPyInputStream(_arg0); |
122 | ||
4268f798 RD |
123 | wxPyEndAllowThreads(__tstate); |
124 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 125 | } if (_result) { |
c368d904 RD |
126 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyInputStream_p"); |
127 | _resultobj = Py_BuildValue("s",_ptemp); | |
9416aa89 RD |
128 | } else { |
129 | Py_INCREF(Py_None); | |
130 | _resultobj = Py_None; | |
c368d904 | 131 | } |
c368d904 RD |
132 | return _resultobj; |
133 | } | |
134 | ||
135 | #define wxInputStream_close(_swigobj) (_swigobj->close()) | |
136 | static PyObject *_wrap_wxInputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
137 | PyObject * _resultobj; | |
138 | wxPyInputStream * _arg0; | |
139 | PyObject * _argo0 = 0; | |
140 | char *_kwnames[] = { "self", NULL }; | |
141 | ||
142 | self = self; | |
143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxInputStream_close",_kwnames,&_argo0)) | |
144 | return NULL; | |
145 | if (_argo0) { | |
146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) { | |
148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_close. Expected _wxPyInputStream_p."); | |
149 | return NULL; | |
150 | } | |
151 | } | |
152 | { | |
4268f798 | 153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
154 | wxInputStream_close(_arg0); |
155 | ||
4268f798 RD |
156 | wxPyEndAllowThreads(__tstate); |
157 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
158 | } Py_INCREF(Py_None); |
159 | _resultobj = Py_None; | |
160 | return _resultobj; | |
161 | } | |
162 | ||
163 | #define wxInputStream_flush(_swigobj) (_swigobj->flush()) | |
164 | static PyObject *_wrap_wxInputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
165 | PyObject * _resultobj; | |
166 | wxPyInputStream * _arg0; | |
167 | PyObject * _argo0 = 0; | |
168 | char *_kwnames[] = { "self", NULL }; | |
169 | ||
170 | self = self; | |
171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxInputStream_flush",_kwnames,&_argo0)) | |
172 | return NULL; | |
173 | if (_argo0) { | |
174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) { | |
176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_flush. Expected _wxPyInputStream_p."); | |
177 | return NULL; | |
178 | } | |
179 | } | |
180 | { | |
4268f798 | 181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
182 | wxInputStream_flush(_arg0); |
183 | ||
4268f798 RD |
184 | wxPyEndAllowThreads(__tstate); |
185 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
186 | } Py_INCREF(Py_None); |
187 | _resultobj = Py_None; | |
188 | return _resultobj; | |
189 | } | |
190 | ||
191 | #define wxInputStream_eof(_swigobj) (_swigobj->eof()) | |
192 | static PyObject *_wrap_wxInputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
193 | PyObject * _resultobj; | |
194 | bool _result; | |
195 | wxPyInputStream * _arg0; | |
196 | PyObject * _argo0 = 0; | |
197 | char *_kwnames[] = { "self", NULL }; | |
198 | ||
199 | self = self; | |
200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxInputStream_eof",_kwnames,&_argo0)) | |
201 | return NULL; | |
202 | if (_argo0) { | |
203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) { | |
205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_eof. Expected _wxPyInputStream_p."); | |
206 | return NULL; | |
207 | } | |
208 | } | |
209 | { | |
4268f798 | 210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
211 | _result = (bool )wxInputStream_eof(_arg0); |
212 | ||
4268f798 RD |
213 | wxPyEndAllowThreads(__tstate); |
214 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
215 | } _resultobj = Py_BuildValue("i",_result); |
216 | return _resultobj; | |
217 | } | |
218 | ||
219 | #define wxInputStream_read(_swigobj,_swigarg0) (_swigobj->read(_swigarg0)) | |
220 | static PyObject *_wrap_wxInputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
221 | PyObject * _resultobj; | |
222 | wxString * _result; | |
223 | wxPyInputStream * _arg0; | |
224 | int _arg1 = (int ) -1; | |
225 | PyObject * _argo0 = 0; | |
226 | char *_kwnames[] = { "self","size", NULL }; | |
227 | ||
228 | self = self; | |
229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxInputStream_read",_kwnames,&_argo0,&_arg1)) | |
230 | return NULL; | |
231 | if (_argo0) { | |
232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) { | |
234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_read. Expected _wxPyInputStream_p."); | |
235 | return NULL; | |
236 | } | |
237 | } | |
238 | { | |
4268f798 | 239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
240 | _result = (wxString *)wxInputStream_read(_arg0,_arg1); |
241 | ||
4268f798 RD |
242 | wxPyEndAllowThreads(__tstate); |
243 | if (PyErr_Occurred()) return NULL; | |
c368d904 | 244 | }{ |
4268f798 | 245 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c368d904 RD |
246 | } |
247 | return _resultobj; | |
248 | } | |
249 | ||
250 | #define wxInputStream_readline(_swigobj,_swigarg0) (_swigobj->readline(_swigarg0)) | |
251 | static PyObject *_wrap_wxInputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
252 | PyObject * _resultobj; | |
253 | wxString * _result; | |
254 | wxPyInputStream * _arg0; | |
255 | int _arg1 = (int ) -1; | |
256 | PyObject * _argo0 = 0; | |
257 | char *_kwnames[] = { "self","size", NULL }; | |
258 | ||
259 | self = self; | |
260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxInputStream_readline",_kwnames,&_argo0,&_arg1)) | |
261 | return NULL; | |
262 | if (_argo0) { | |
263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) { | |
265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_readline. Expected _wxPyInputStream_p."); | |
266 | return NULL; | |
267 | } | |
268 | } | |
269 | { | |
4268f798 | 270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
271 | _result = (wxString *)wxInputStream_readline(_arg0,_arg1); |
272 | ||
4268f798 RD |
273 | wxPyEndAllowThreads(__tstate); |
274 | if (PyErr_Occurred()) return NULL; | |
c368d904 | 275 | }{ |
4268f798 | 276 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c368d904 RD |
277 | } |
278 | return _resultobj; | |
279 | } | |
280 | ||
281 | #define wxInputStream_readlines(_swigobj,_swigarg0) (_swigobj->readlines(_swigarg0)) | |
282 | static PyObject *_wrap_wxInputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
283 | PyObject * _resultobj; | |
284 | wxStringPtrList * _result; | |
285 | wxPyInputStream * _arg0; | |
286 | int _arg1 = (int ) -1; | |
287 | PyObject * _argo0 = 0; | |
288 | char *_kwnames[] = { "self","sizehint", NULL }; | |
289 | ||
290 | self = self; | |
291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxInputStream_readlines",_kwnames,&_argo0,&_arg1)) | |
292 | return NULL; | |
293 | if (_argo0) { | |
294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) { | |
296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_readlines. Expected _wxPyInputStream_p."); | |
297 | return NULL; | |
298 | } | |
299 | } | |
300 | { | |
4268f798 | 301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
302 | _result = (wxStringPtrList *)wxInputStream_readlines(_arg0,_arg1); |
303 | ||
4268f798 RD |
304 | wxPyEndAllowThreads(__tstate); |
305 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
306 | }{ |
307 | if (_result) { | |
308 | _resultobj = PyList_New(_result->GetCount()); | |
309 | wxStringPtrList::Node *node = _result->GetFirst(); | |
310 | for (int i=0; node; i++) { | |
311 | wxString *s = node->GetData(); | |
312 | PyList_SetItem(_resultobj, i, PyString_FromStringAndSize(s->c_str(), s->Len())); | |
313 | node = node->GetNext(); | |
314 | delete s; | |
315 | } | |
316 | delete _result; | |
317 | } | |
318 | else | |
319 | _resultobj=0; | |
320 | } | |
321 | return _resultobj; | |
322 | } | |
323 | ||
324 | #define wxInputStream_seek(_swigobj,_swigarg0,_swigarg1) (_swigobj->seek(_swigarg0,_swigarg1)) | |
325 | static PyObject *_wrap_wxInputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
326 | PyObject * _resultobj; | |
327 | wxPyInputStream * _arg0; | |
328 | int _arg1; | |
329 | int _arg2 = (int ) 0; | |
330 | PyObject * _argo0 = 0; | |
331 | char *_kwnames[] = { "self","offset","whence", NULL }; | |
332 | ||
333 | self = self; | |
334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxInputStream_seek",_kwnames,&_argo0,&_arg1,&_arg2)) | |
335 | return NULL; | |
336 | if (_argo0) { | |
337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) { | |
339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_seek. Expected _wxPyInputStream_p."); | |
340 | return NULL; | |
341 | } | |
342 | } | |
343 | { | |
4268f798 | 344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
345 | wxInputStream_seek(_arg0,_arg1,_arg2); |
346 | ||
4268f798 RD |
347 | wxPyEndAllowThreads(__tstate); |
348 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
349 | } Py_INCREF(Py_None); |
350 | _resultobj = Py_None; | |
351 | return _resultobj; | |
352 | } | |
353 | ||
354 | #define wxInputStream_tell(_swigobj) (_swigobj->tell()) | |
355 | static PyObject *_wrap_wxInputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
356 | PyObject * _resultobj; | |
357 | int _result; | |
358 | wxPyInputStream * _arg0; | |
359 | PyObject * _argo0 = 0; | |
360 | char *_kwnames[] = { "self", NULL }; | |
361 | ||
362 | self = self; | |
363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxInputStream_tell",_kwnames,&_argo0)) | |
364 | return NULL; | |
365 | if (_argo0) { | |
366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyInputStream_p")) { | |
368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInputStream_tell. Expected _wxPyInputStream_p."); | |
369 | return NULL; | |
370 | } | |
371 | } | |
372 | { | |
4268f798 | 373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
374 | _result = (int )wxInputStream_tell(_arg0); |
375 | ||
4268f798 RD |
376 | wxPyEndAllowThreads(__tstate); |
377 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
378 | } _resultobj = Py_BuildValue("i",_result); |
379 | return _resultobj; | |
380 | } | |
381 | ||
382 | static void wxOutputStream_write(wxOutputStream *self,const wxString & str) { | |
383 | self->Write(str.c_str(), str.Length()); | |
384 | } | |
385 | static PyObject *_wrap_wxOutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
386 | PyObject * _resultobj; | |
387 | wxOutputStream * _arg0; | |
388 | wxString * _arg1; | |
389 | PyObject * _argo0 = 0; | |
390 | PyObject * _obj1 = 0; | |
391 | char *_kwnames[] = { "self","str", NULL }; | |
392 | ||
393 | self = self; | |
394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxOutputStream_write",_kwnames,&_argo0,&_obj1)) | |
395 | return NULL; | |
396 | if (_argo0) { | |
397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxOutputStream_p")) { | |
399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxOutputStream_write. Expected _wxOutputStream_p."); | |
400 | return NULL; | |
401 | } | |
402 | } | |
403 | { | |
185d7c3e RD |
404 | #if PYTHON_API_VERSION >= 1009 |
405 | char* tmpPtr; int tmpSize; | |
406 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 407 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
408 | return NULL; |
409 | } | |
410 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
411 | return NULL; | |
412 | _arg1 = new wxString(tmpPtr, tmpSize); | |
413 | #else | |
c368d904 RD |
414 | if (!PyString_Check(_obj1)) { |
415 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
416 | return NULL; | |
417 | } | |
185d7c3e RD |
418 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
419 | #endif | |
c368d904 RD |
420 | } |
421 | { | |
4268f798 | 422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
423 | wxOutputStream_write(_arg0,*_arg1); |
424 | ||
4268f798 RD |
425 | wxPyEndAllowThreads(__tstate); |
426 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
427 | } Py_INCREF(Py_None); |
428 | _resultobj = Py_None; | |
429 | { | |
430 | if (_obj1) | |
431 | delete _arg1; | |
432 | } | |
433 | return _resultobj; | |
434 | } | |
435 | ||
436 | static PyMethodDef streamscMethods[] = { | |
437 | { "wxOutputStream_write", (PyCFunction) _wrap_wxOutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
438 | { "wxInputStream_tell", (PyCFunction) _wrap_wxInputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
439 | { "wxInputStream_seek", (PyCFunction) _wrap_wxInputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
440 | { "wxInputStream_readlines", (PyCFunction) _wrap_wxInputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
441 | { "wxInputStream_readline", (PyCFunction) _wrap_wxInputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
442 | { "wxInputStream_read", (PyCFunction) _wrap_wxInputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
443 | { "wxInputStream_eof", (PyCFunction) _wrap_wxInputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
444 | { "wxInputStream_flush", (PyCFunction) _wrap_wxInputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
445 | { "wxInputStream_close", (PyCFunction) _wrap_wxInputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
446 | { "new_wxInputStream", (PyCFunction) _wrap_new_wxInputStream, METH_VARARGS | METH_KEYWORDS }, | |
447 | { NULL, NULL } | |
448 | }; | |
449 | #ifdef __cplusplus | |
450 | } | |
451 | #endif | |
452 | /* | |
453 | * This table is used by the pointer type-checker | |
454 | */ | |
455 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
456 | { "_signed_long","_long",0}, | |
457 | { "_wxPrintQuality","_wxCoord",0}, | |
458 | { "_wxPrintQuality","_int",0}, | |
459 | { "_wxPrintQuality","_signed_int",0}, | |
460 | { "_wxPrintQuality","_unsigned_int",0}, | |
461 | { "_wxPrintQuality","_wxWindowID",0}, | |
462 | { "_wxPrintQuality","_uint",0}, | |
463 | { "_wxPrintQuality","_EBool",0}, | |
464 | { "_wxPrintQuality","_size_t",0}, | |
465 | { "_wxPrintQuality","_time_t",0}, | |
466 | { "_byte","_unsigned_char",0}, | |
467 | { "_long","_unsigned_long",0}, | |
468 | { "_long","_signed_long",0}, | |
469 | { "_size_t","_wxCoord",0}, | |
470 | { "_size_t","_wxPrintQuality",0}, | |
471 | { "_size_t","_time_t",0}, | |
472 | { "_size_t","_unsigned_int",0}, | |
473 | { "_size_t","_int",0}, | |
474 | { "_size_t","_wxWindowID",0}, | |
475 | { "_size_t","_uint",0}, | |
476 | { "_uint","_wxCoord",0}, | |
477 | { "_uint","_wxPrintQuality",0}, | |
478 | { "_uint","_time_t",0}, | |
479 | { "_uint","_size_t",0}, | |
480 | { "_uint","_unsigned_int",0}, | |
481 | { "_uint","_int",0}, | |
482 | { "_uint","_wxWindowID",0}, | |
483 | { "_wxChar","_char",0}, | |
484 | { "_char","_wxChar",0}, | |
485 | { "_EBool","_wxCoord",0}, | |
486 | { "_EBool","_wxPrintQuality",0}, | |
487 | { "_EBool","_signed_int",0}, | |
488 | { "_EBool","_int",0}, | |
489 | { "_EBool","_wxWindowID",0}, | |
490 | { "_unsigned_long","_long",0}, | |
c368d904 RD |
491 | { "_signed_int","_wxCoord",0}, |
492 | { "_signed_int","_wxPrintQuality",0}, | |
493 | { "_signed_int","_EBool",0}, | |
494 | { "_signed_int","_wxWindowID",0}, | |
495 | { "_signed_int","_int",0}, | |
496 | { "_WXTYPE","_short",0}, | |
497 | { "_WXTYPE","_signed_short",0}, | |
498 | { "_WXTYPE","_unsigned_short",0}, | |
499 | { "_unsigned_short","_WXTYPE",0}, | |
500 | { "_unsigned_short","_short",0}, | |
c368d904 RD |
501 | { "_signed_short","_WXTYPE",0}, |
502 | { "_signed_short","_short",0}, | |
503 | { "_unsigned_char","_byte",0}, | |
504 | { "_unsigned_int","_wxCoord",0}, | |
505 | { "_unsigned_int","_wxPrintQuality",0}, | |
506 | { "_unsigned_int","_time_t",0}, | |
507 | { "_unsigned_int","_size_t",0}, | |
508 | { "_unsigned_int","_uint",0}, | |
509 | { "_unsigned_int","_wxWindowID",0}, | |
510 | { "_unsigned_int","_int",0}, | |
511 | { "_short","_WXTYPE",0}, | |
512 | { "_short","_unsigned_short",0}, | |
513 | { "_short","_signed_short",0}, | |
514 | { "_wxWindowID","_wxCoord",0}, | |
515 | { "_wxWindowID","_wxPrintQuality",0}, | |
516 | { "_wxWindowID","_time_t",0}, | |
517 | { "_wxWindowID","_size_t",0}, | |
518 | { "_wxWindowID","_EBool",0}, | |
519 | { "_wxWindowID","_uint",0}, | |
520 | { "_wxWindowID","_int",0}, | |
521 | { "_wxWindowID","_signed_int",0}, | |
522 | { "_wxWindowID","_unsigned_int",0}, | |
523 | { "_int","_wxCoord",0}, | |
524 | { "_int","_wxPrintQuality",0}, | |
525 | { "_int","_time_t",0}, | |
526 | { "_int","_size_t",0}, | |
527 | { "_int","_EBool",0}, | |
528 | { "_int","_uint",0}, | |
529 | { "_int","_wxWindowID",0}, | |
530 | { "_int","_unsigned_int",0}, | |
531 | { "_int","_signed_int",0}, | |
532 | { "_time_t","_wxCoord",0}, | |
533 | { "_time_t","_wxPrintQuality",0}, | |
534 | { "_time_t","_unsigned_int",0}, | |
535 | { "_time_t","_int",0}, | |
536 | { "_time_t","_wxWindowID",0}, | |
537 | { "_time_t","_uint",0}, | |
538 | { "_time_t","_size_t",0}, | |
539 | { "_wxCoord","_int",0}, | |
540 | { "_wxCoord","_signed_int",0}, | |
541 | { "_wxCoord","_unsigned_int",0}, | |
542 | { "_wxCoord","_wxWindowID",0}, | |
543 | { "_wxCoord","_uint",0}, | |
544 | { "_wxCoord","_EBool",0}, | |
545 | { "_wxCoord","_size_t",0}, | |
546 | { "_wxCoord","_time_t",0}, | |
547 | { "_wxCoord","_wxPrintQuality",0}, | |
c368d904 RD |
548 | {0,0,0}}; |
549 | ||
550 | static PyObject *SWIG_globals; | |
551 | #ifdef __cplusplus | |
552 | extern "C" | |
553 | #endif | |
554 | SWIGEXPORT(void) initstreamsc() { | |
555 | PyObject *m, *d; | |
556 | SWIG_globals = SWIG_newvarlink(); | |
557 | m = Py_InitModule("streamsc", streamscMethods); | |
558 | d = PyModule_GetDict(m); | |
9416aa89 RD |
559 | |
560 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
c368d904 RD |
561 | { |
562 | int i; | |
563 | for (i = 0; _swig_mapping[i].n1; i++) | |
564 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
565 | } | |
566 | } |