2 * FILE : src/msw/streams.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
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);
54 #define SWIG_init initstreamsc
56 #define SWIG_name "streamsc"
59 #include <wx/stream.h>
62 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
66 } else if (target
== Py_None
) {
70 if (!PyList_Check(target
)) {
72 target
= PyList_New(0);
73 PyList_Append(target
, o2
);
76 PyList_Append(target
,o
);
82 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
88 } else if (target
== Py_None
) {
92 if (!PyTuple_Check(target
)) {
94 target
= PyTuple_New(1);
95 PyTuple_SetItem(target
, 0, o2
);
98 PyTuple_SetItem(o3
, 0, o
);
101 target
= PySequence_Concat(o2
, o3
);
108 static char* wxStringErrorMsg
= "string type is required for parameter";
110 // definitions of wxStringPtrList and wxPyInputStream
111 #include <wx/listimpl.cpp>
112 WX_DEFINE_LIST(wxStringPtrList
);
115 void wxPyInputStream::close() {
119 void wxPyInputStream::flush() {
123 bool wxPyInputStream::eof() {
130 wxPyInputStream::~wxPyInputStream() {
134 wxString
* wxPyInputStream::read(int size
) {
136 const int BUFSIZE
= 1024;
138 // check if we have a real wxInputStream to work with
140 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
146 char * buf
= new char[BUFSIZE
];
160 wxPy_BEGIN_ALLOW_THREADS
;
161 while (! wxi
->Eof()) {
162 wxi
->Read(buf
, BUFSIZE
);
163 //*s += wxString(buf, wxi->LastRead());
164 s
->Append(buf
, wxi
->LastRead());
167 wxPy_END_ALLOW_THREADS
;
170 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
172 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
176 } else { // Read only size number of characters
184 wxPy_BEGIN_ALLOW_THREADS
;
185 wxi
->Read(s
->GetWriteBuf(size
+1), size
);
186 s
->UngetWriteBuf(wxi
->LastRead());
187 wxPy_END_ALLOW_THREADS
;
190 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
192 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
200 wxString
* wxPyInputStream::readline (int size
) {
201 // check if we have a real wxInputStream to work with
203 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
210 wxString
* s
= new wxString
;
216 // read until \n or byte limit reached
217 wxPy_BEGIN_ALLOW_THREADS
;
218 for (i
=ch
=0; (ch
!= '\n') && (!wxi
->Eof()) && ((size
< 0) || (i
< size
)); i
++) {
219 *s
+= ch
= wxi
->GetC();
221 wxPy_END_ALLOW_THREADS
;
224 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
226 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
233 wxStringPtrList
* wxPyInputStream::readlines (int sizehint
) {
234 // check if we have a real wxInputStream to work with
236 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
241 wxStringPtrList
* l
= new wxStringPtrList();
247 // read sizehint bytes or until EOF
248 wxPy_BEGIN_ALLOW_THREADS
;
250 for (i
=0; (!wxi
->Eof()) && ((sizehint
< 0) || (i
< sizehint
));) {
251 wxString
* s
= readline();
253 l
->DeleteContents(TRUE
);
260 wxPy_END_ALLOW_THREADS
;
263 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
264 l
->DeleteContents(TRUE
);
266 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
273 void wxPyInputStream::seek(int offset
, int whence
) {
275 wxi
->SeekI(offset
, wxSeekMode(whence
));
278 int wxPyInputStream::tell(){
285 // wxInputStream which operates on a Python file-like object
286 class wxPyCBInputStream
: public wxInputStream
{
293 virtual size_t OnSysRead(void *buffer
, size_t bufsize
) {
297 bool doSave
= wxPyRestoreThread();
298 PyObject
* arglist
= Py_BuildValue("(i)", bufsize
);
299 PyObject
* result
= PyEval_CallObject(read
, arglist
);
303 if ((result
!= NULL
) && PyString_Check(result
)) {
304 o
= PyString_Size(result
);
306 m_lasterror
= wxSTREAM_EOF
;
309 strncpy((char*)buffer
, PyString_AsString(result
), o
);
314 m_lasterror
= wxSTREAM_READ_ERROR
;
315 wxPySaveThread(doSave
);
320 virtual size_t OnSysWrite(const void *buffer
, size_t bufsize
){
321 m_lasterror
= wxSTREAM_WRITE_ERROR
;
325 virtual off_t
OnSysSeek(off_t off
, wxSeekMode mode
){
326 bool doSave
= wxPyRestoreThread();
327 PyObject
*arglist
= Py_BuildValue("(ii)", off
, mode
);
328 PyObject
*result
= PyEval_CallObject(seek
, arglist
);
331 wxPySaveThread(doSave
);
335 virtual off_t
OnSysTell() const{
336 bool doSave
= wxPyRestoreThread();
337 PyObject
* arglist
= Py_BuildValue("()");
338 PyObject
* result
= PyEval_CallObject(tell
, arglist
);
341 if (result
!= NULL
) {
342 o
= PyInt_AsLong(result
);
345 wxPySaveThread(doSave
);
349 wxPyCBInputStream(PyObject
*p
, PyObject
*r
, PyObject
*s
, PyObject
*t
)
350 : py(p
), read(r
), seek(s
), tell(t
)
354 ~wxPyCBInputStream() {
355 bool doSave
= wxPyRestoreThread();
360 wxPySaveThread(doSave
);
363 virtual size_t GetSize() {
365 off_t temp
= OnSysTell();
366 off_t ret
= OnSysSeek(0, wxFromEnd
);
367 OnSysSeek(temp
, wxFromStart
);
374 static wxPyCBInputStream
* create(PyObject
*py
) {
379 if (!PyInstance_Check(py
) && !PyFile_Check(py
)) {
380 PyErr_SetString(PyExc_TypeError
, "Not a file-like object");
384 read
= getMethod(py
, "read");
385 seek
= getMethod(py
, "seek");
386 tell
= getMethod(py
, "tell");
389 PyErr_SetString(PyExc_TypeError
, "Not a file-like object");
396 return new wxPyCBInputStream(py
, read
, seek
, tell
);
399 static PyObject
* getMethod(PyObject
* py
, char* name
) {
400 if (!PyObject_HasAttrString(py
, name
))
402 PyObject
* o
= PyObject_GetAttrString(py
, name
);
403 if (!PyMethod_Check(o
) && !PyCFunction_Check(o
)) {
417 static wxPyInputStream
*new_wxPyInputStream(PyObject
*p
) {
418 wxInputStream
* wxi
= wxPyCBInputStream::create(p
);
420 return new wxPyInputStream(wxi
);
425 static PyObject
*_wrap_new_wxInputStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
426 PyObject
* _resultobj
;
427 wxPyInputStream
* _result
;
429 PyObject
* _obj0
= 0;
430 char *_kwnames
[] = { "p", NULL
};
433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxInputStream",_kwnames
,&_obj0
))
439 _result
= (wxPyInputStream
*)new_wxPyInputStream(_arg0
);
444 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyInputStream_p");
445 _resultobj
= Py_BuildValue("s",_ptemp
);
453 #define wxInputStream_close(_swigobj) (_swigobj->close())
454 static PyObject
*_wrap_wxInputStream_close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
455 PyObject
* _resultobj
;
456 wxPyInputStream
* _arg0
;
457 PyObject
* _argo0
= 0;
458 char *_kwnames
[] = { "self", NULL
};
461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_close",_kwnames
,&_argo0
))
464 if (_argo0
== Py_None
) { _arg0
= NULL
; }
465 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_close. Expected _wxPyInputStream_p.");
471 wxInputStream_close(_arg0
);
473 } Py_INCREF(Py_None
);
474 _resultobj
= Py_None
;
478 #define wxInputStream_flush(_swigobj) (_swigobj->flush())
479 static PyObject
*_wrap_wxInputStream_flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
480 PyObject
* _resultobj
;
481 wxPyInputStream
* _arg0
;
482 PyObject
* _argo0
= 0;
483 char *_kwnames
[] = { "self", NULL
};
486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_flush",_kwnames
,&_argo0
))
489 if (_argo0
== Py_None
) { _arg0
= NULL
; }
490 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_flush. Expected _wxPyInputStream_p.");
496 wxInputStream_flush(_arg0
);
498 } Py_INCREF(Py_None
);
499 _resultobj
= Py_None
;
503 #define wxInputStream_eof(_swigobj) (_swigobj->eof())
504 static PyObject
*_wrap_wxInputStream_eof(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
505 PyObject
* _resultobj
;
507 wxPyInputStream
* _arg0
;
508 PyObject
* _argo0
= 0;
509 char *_kwnames
[] = { "self", NULL
};
512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_eof",_kwnames
,&_argo0
))
515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_eof. Expected _wxPyInputStream_p.");
522 _result
= (bool )wxInputStream_eof(_arg0
);
524 } _resultobj
= Py_BuildValue("i",_result
);
528 #define wxInputStream_read(_swigobj,_swigarg0) (_swigobj->read(_swigarg0))
529 static PyObject
*_wrap_wxInputStream_read(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
530 PyObject
* _resultobj
;
532 wxPyInputStream
* _arg0
;
533 int _arg1
= (int ) -1;
534 PyObject
* _argo0
= 0;
535 char *_kwnames
[] = { "self","size", NULL
};
538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_read",_kwnames
,&_argo0
,&_arg1
))
541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_read. Expected _wxPyInputStream_p.");
548 _result
= (wxString
*)wxInputStream_read(_arg0
,_arg1
);
552 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
561 #define wxInputStream_readline(_swigobj,_swigarg0) (_swigobj->readline(_swigarg0))
562 static PyObject
*_wrap_wxInputStream_readline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
563 PyObject
* _resultobj
;
565 wxPyInputStream
* _arg0
;
566 int _arg1
= (int ) -1;
567 PyObject
* _argo0
= 0;
568 char *_kwnames
[] = { "self","size", NULL
};
571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_readline",_kwnames
,&_argo0
,&_arg1
))
574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_readline. Expected _wxPyInputStream_p.");
581 _result
= (wxString
*)wxInputStream_readline(_arg0
,_arg1
);
585 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
594 #define wxInputStream_readlines(_swigobj,_swigarg0) (_swigobj->readlines(_swigarg0))
595 static PyObject
*_wrap_wxInputStream_readlines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
596 PyObject
* _resultobj
;
597 wxStringPtrList
* _result
;
598 wxPyInputStream
* _arg0
;
599 int _arg1
= (int ) -1;
600 PyObject
* _argo0
= 0;
601 char *_kwnames
[] = { "self","sizehint", NULL
};
604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_readlines",_kwnames
,&_argo0
,&_arg1
))
607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_readlines. Expected _wxPyInputStream_p.");
614 _result
= (wxStringPtrList
*)wxInputStream_readlines(_arg0
,_arg1
);
618 _resultobj
= PyList_New(_result
->GetCount());
619 wxStringPtrList::Node
*node
= _result
->GetFirst();
620 for (int i
=0; node
; i
++) {
621 wxString
*s
= node
->GetData();
622 PyList_SetItem(_resultobj
, i
, PyString_FromStringAndSize(s
->c_str(), s
->Len()));
623 node
= node
->GetNext();
634 #define wxInputStream_seek(_swigobj,_swigarg0,_swigarg1) (_swigobj->seek(_swigarg0,_swigarg1))
635 static PyObject
*_wrap_wxInputStream_seek(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
636 PyObject
* _resultobj
;
637 wxPyInputStream
* _arg0
;
639 int _arg2
= (int ) 0;
640 PyObject
* _argo0
= 0;
641 char *_kwnames
[] = { "self","offset","whence", NULL
};
644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|i:wxInputStream_seek",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_seek. Expected _wxPyInputStream_p.");
654 wxInputStream_seek(_arg0
,_arg1
,_arg2
);
656 } Py_INCREF(Py_None
);
657 _resultobj
= Py_None
;
661 #define wxInputStream_tell(_swigobj) (_swigobj->tell())
662 static PyObject
*_wrap_wxInputStream_tell(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
663 PyObject
* _resultobj
;
665 wxPyInputStream
* _arg0
;
666 PyObject
* _argo0
= 0;
667 char *_kwnames
[] = { "self", NULL
};
670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_tell",_kwnames
,&_argo0
))
673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_tell. Expected _wxPyInputStream_p.");
680 _result
= (int )wxInputStream_tell(_arg0
);
682 } _resultobj
= Py_BuildValue("i",_result
);
686 static void wxOutputStream_write(wxOutputStream
*self
,const wxString
& str
) {
687 self
->Write(str
.c_str(), str
.Length());
689 static PyObject
*_wrap_wxOutputStream_write(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
690 PyObject
* _resultobj
;
691 wxOutputStream
* _arg0
;
693 PyObject
* _argo0
= 0;
694 PyObject
* _obj1
= 0;
695 char *_kwnames
[] = { "self","str", NULL
};
698 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxOutputStream_write",_kwnames
,&_argo0
,&_obj1
))
701 if (_argo0
== Py_None
) { _arg0
= NULL
; }
702 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxOutputStream_p")) {
703 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxOutputStream_write. Expected _wxOutputStream_p.");
708 #if PYTHON_API_VERSION >= 1009
709 char* tmpPtr
; int tmpSize
;
710 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
711 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
714 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
716 _arg1
= new wxString(tmpPtr
, tmpSize
);
718 if (!PyString_Check(_obj1
)) {
719 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
722 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
726 wxOutputStream_write(_arg0
,*_arg1
);
728 } Py_INCREF(Py_None
);
729 _resultobj
= Py_None
;
737 static PyMethodDef streamscMethods
[] = {
738 { "wxOutputStream_write", (PyCFunction
) _wrap_wxOutputStream_write
, METH_VARARGS
| METH_KEYWORDS
},
739 { "wxInputStream_tell", (PyCFunction
) _wrap_wxInputStream_tell
, METH_VARARGS
| METH_KEYWORDS
},
740 { "wxInputStream_seek", (PyCFunction
) _wrap_wxInputStream_seek
, METH_VARARGS
| METH_KEYWORDS
},
741 { "wxInputStream_readlines", (PyCFunction
) _wrap_wxInputStream_readlines
, METH_VARARGS
| METH_KEYWORDS
},
742 { "wxInputStream_readline", (PyCFunction
) _wrap_wxInputStream_readline
, METH_VARARGS
| METH_KEYWORDS
},
743 { "wxInputStream_read", (PyCFunction
) _wrap_wxInputStream_read
, METH_VARARGS
| METH_KEYWORDS
},
744 { "wxInputStream_eof", (PyCFunction
) _wrap_wxInputStream_eof
, METH_VARARGS
| METH_KEYWORDS
},
745 { "wxInputStream_flush", (PyCFunction
) _wrap_wxInputStream_flush
, METH_VARARGS
| METH_KEYWORDS
},
746 { "wxInputStream_close", (PyCFunction
) _wrap_wxInputStream_close
, METH_VARARGS
| METH_KEYWORDS
},
747 { "new_wxInputStream", (PyCFunction
) _wrap_new_wxInputStream
, METH_VARARGS
| METH_KEYWORDS
},
754 * This table is used by the pointer type-checker
756 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
757 { "_signed_long","_long",0},
758 { "_wxPrintQuality","_wxCoord",0},
759 { "_wxPrintQuality","_int",0},
760 { "_wxPrintQuality","_signed_int",0},
761 { "_wxPrintQuality","_unsigned_int",0},
762 { "_wxPrintQuality","_wxWindowID",0},
763 { "_wxPrintQuality","_uint",0},
764 { "_wxPrintQuality","_EBool",0},
765 { "_wxPrintQuality","_size_t",0},
766 { "_wxPrintQuality","_time_t",0},
767 { "_byte","_unsigned_char",0},
768 { "_long","_unsigned_long",0},
769 { "_long","_signed_long",0},
770 { "_size_t","_wxCoord",0},
771 { "_size_t","_wxPrintQuality",0},
772 { "_size_t","_time_t",0},
773 { "_size_t","_unsigned_int",0},
774 { "_size_t","_int",0},
775 { "_size_t","_wxWindowID",0},
776 { "_size_t","_uint",0},
777 { "_uint","_wxCoord",0},
778 { "_uint","_wxPrintQuality",0},
779 { "_uint","_time_t",0},
780 { "_uint","_size_t",0},
781 { "_uint","_unsigned_int",0},
783 { "_uint","_wxWindowID",0},
784 { "_wxChar","_char",0},
785 { "_char","_wxChar",0},
786 { "_EBool","_wxCoord",0},
787 { "_EBool","_wxPrintQuality",0},
788 { "_EBool","_signed_int",0},
789 { "_EBool","_int",0},
790 { "_EBool","_wxWindowID",0},
791 { "_unsigned_long","_long",0},
792 { "_wxPyInputStream","_class_wxPyInputStream",0},
793 { "_class_wxOutputStream","_wxOutputStream",0},
794 { "_signed_int","_wxCoord",0},
795 { "_signed_int","_wxPrintQuality",0},
796 { "_signed_int","_EBool",0},
797 { "_signed_int","_wxWindowID",0},
798 { "_signed_int","_int",0},
799 { "_WXTYPE","_short",0},
800 { "_WXTYPE","_signed_short",0},
801 { "_WXTYPE","_unsigned_short",0},
802 { "_unsigned_short","_WXTYPE",0},
803 { "_unsigned_short","_short",0},
804 { "_class_wxPyInputStream","_wxPyInputStream",0},
805 { "_signed_short","_WXTYPE",0},
806 { "_signed_short","_short",0},
807 { "_unsigned_char","_byte",0},
808 { "_unsigned_int","_wxCoord",0},
809 { "_unsigned_int","_wxPrintQuality",0},
810 { "_unsigned_int","_time_t",0},
811 { "_unsigned_int","_size_t",0},
812 { "_unsigned_int","_uint",0},
813 { "_unsigned_int","_wxWindowID",0},
814 { "_unsigned_int","_int",0},
815 { "_short","_WXTYPE",0},
816 { "_short","_unsigned_short",0},
817 { "_short","_signed_short",0},
818 { "_wxWindowID","_wxCoord",0},
819 { "_wxWindowID","_wxPrintQuality",0},
820 { "_wxWindowID","_time_t",0},
821 { "_wxWindowID","_size_t",0},
822 { "_wxWindowID","_EBool",0},
823 { "_wxWindowID","_uint",0},
824 { "_wxWindowID","_int",0},
825 { "_wxWindowID","_signed_int",0},
826 { "_wxWindowID","_unsigned_int",0},
827 { "_int","_wxCoord",0},
828 { "_int","_wxPrintQuality",0},
829 { "_int","_time_t",0},
830 { "_int","_size_t",0},
831 { "_int","_EBool",0},
833 { "_int","_wxWindowID",0},
834 { "_int","_unsigned_int",0},
835 { "_int","_signed_int",0},
836 { "_time_t","_wxCoord",0},
837 { "_time_t","_wxPrintQuality",0},
838 { "_time_t","_unsigned_int",0},
839 { "_time_t","_int",0},
840 { "_time_t","_wxWindowID",0},
841 { "_time_t","_uint",0},
842 { "_time_t","_size_t",0},
843 { "_wxCoord","_int",0},
844 { "_wxCoord","_signed_int",0},
845 { "_wxCoord","_unsigned_int",0},
846 { "_wxCoord","_wxWindowID",0},
847 { "_wxCoord","_uint",0},
848 { "_wxCoord","_EBool",0},
849 { "_wxCoord","_size_t",0},
850 { "_wxCoord","_time_t",0},
851 { "_wxCoord","_wxPrintQuality",0},
852 { "_wxOutputStream","_class_wxOutputStream",0},
855 static PyObject
*SWIG_globals
;
859 SWIGEXPORT(void) initstreamsc() {
861 SWIG_globals
= SWIG_newvarlink();
862 m
= Py_InitModule("streamsc", streamscMethods
);
863 d
= PyModule_GetDict(m
);
866 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
867 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);