2 * FILE : src/gtk/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
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
47 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
48 extern PyObject
*SWIG_newvarlink(void);
52 #define SWIG_init initstreamsc
54 #define SWIG_name "streamsc"
57 #include <wx/stream.h>
60 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
64 } else if (target
== Py_None
) {
68 if (!PyList_Check(target
)) {
70 target
= PyList_New(0);
71 PyList_Append(target
, o2
);
74 PyList_Append(target
,o
);
80 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
86 } else if (target
== Py_None
) {
90 if (!PyTuple_Check(target
)) {
92 target
= PyTuple_New(1);
93 PyTuple_SetItem(target
, 0, o2
);
96 PyTuple_SetItem(o3
, 0, o
);
99 target
= PySequence_Concat(o2
, o3
);
106 static char* wxStringErrorMsg
= "string type is required for parameter";
108 // definitions of wxStringPtrList and wxPyInputStream
109 #include <wx/listimpl.cpp>
110 WX_DEFINE_LIST(wxStringPtrList
);
113 void wxPyInputStream::close() {
117 void wxPyInputStream::flush() {
121 bool wxPyInputStream::eof() {
128 wxPyInputStream::~wxPyInputStream() {
132 wxString
* wxPyInputStream::read(int size
) {
134 const int BUFSIZE
= 1024;
136 // check if we have a real wxInputStream to work with
138 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
144 char * buf
= new char[BUFSIZE
];
158 wxPy_BEGIN_ALLOW_THREADS
;
159 while (! wxi
->Eof()) {
160 wxi
->Read(buf
, BUFSIZE
);
161 //*s += wxString(buf, wxi->LastRead());
162 s
->Append(buf
, wxi
->LastRead());
165 wxPy_END_ALLOW_THREADS
;
168 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
170 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
174 } else { // Read only size number of characters
182 wxPy_BEGIN_ALLOW_THREADS
;
183 wxi
->Read(s
->GetWriteBuf(size
+1), size
);
184 s
->UngetWriteBuf(wxi
->LastRead());
185 wxPy_END_ALLOW_THREADS
;
188 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
190 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
198 wxString
* wxPyInputStream::readline (int size
) {
199 // check if we have a real wxInputStream to work with
201 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
208 wxString
* s
= new wxString
;
214 // read until \n or byte limit reached
215 wxPy_BEGIN_ALLOW_THREADS
;
216 for (i
=ch
=0; (ch
!= '\n') && (!wxi
->Eof()) && ((size
< 0) || (i
< size
)); i
++) {
217 *s
+= ch
= wxi
->GetC();
219 wxPy_END_ALLOW_THREADS
;
222 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
224 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
231 wxStringPtrList
* wxPyInputStream::readlines (int sizehint
) {
232 // check if we have a real wxInputStream to work with
234 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
239 wxStringPtrList
* l
= new wxStringPtrList();
245 // read sizehint bytes or until EOF
246 wxPy_BEGIN_ALLOW_THREADS
;
248 for (i
=0; (!wxi
->Eof()) && ((sizehint
< 0) || (i
< sizehint
));) {
249 wxString
* s
= readline();
251 l
->DeleteContents(TRUE
);
258 wxPy_END_ALLOW_THREADS
;
261 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
262 l
->DeleteContents(TRUE
);
264 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
271 void wxPyInputStream::seek(int offset
, int whence
) {
273 wxi
->SeekI(offset
, wxSeekMode(whence
));
276 int wxPyInputStream::tell(){
283 // wxInputStream which operates on a Python file-like object
284 class wxPyCBInputStream
: public wxInputStream
{
291 virtual size_t OnSysRead(void *buffer
, size_t bufsize
) {
295 bool doSave
= wxPyRestoreThread();
296 PyObject
* arglist
= Py_BuildValue("(i)", bufsize
);
297 PyObject
* result
= PyEval_CallObject(read
, arglist
);
301 if ((result
!= NULL
) && PyString_Check(result
)) {
302 o
= PyString_Size(result
);
304 m_lasterror
= wxSTREAM_EOF
;
307 strncpy((char*)buffer
, PyString_AsString(result
), o
);
312 m_lasterror
= wxSTREAM_READ_ERROR
;
313 wxPySaveThread(doSave
);
318 virtual size_t OnSysWrite(const void *buffer
, size_t bufsize
){
319 m_lasterror
= wxSTREAM_WRITE_ERROR
;
323 virtual off_t
OnSysSeek(off_t off
, wxSeekMode mode
){
324 bool doSave
= wxPyRestoreThread();
325 PyObject
*arglist
= Py_BuildValue("(ii)", off
, mode
);
326 PyObject
*result
= PyEval_CallObject(seek
, arglist
);
329 wxPySaveThread(doSave
);
333 virtual off_t
OnSysTell() const{
334 bool doSave
= wxPyRestoreThread();
335 PyObject
* arglist
= Py_BuildValue("()");
336 PyObject
* result
= PyEval_CallObject(tell
, arglist
);
339 if (result
!= NULL
) {
340 o
= PyInt_AsLong(result
);
343 wxPySaveThread(doSave
);
347 wxPyCBInputStream(PyObject
*p
, PyObject
*r
, PyObject
*s
, PyObject
*t
)
348 : py(p
), read(r
), seek(s
), tell(t
)
352 ~wxPyCBInputStream() {
353 bool doSave
= wxPyRestoreThread();
358 wxPySaveThread(doSave
);
361 virtual size_t GetSize() {
363 off_t temp
= OnSysTell();
364 off_t ret
= OnSysSeek(0, wxFromEnd
);
365 OnSysSeek(temp
, wxFromStart
);
372 static wxPyCBInputStream
* create(PyObject
*py
) {
377 if (!PyInstance_Check(py
) && !PyFile_Check(py
)) {
378 PyErr_SetString(PyExc_TypeError
, "Not a file-like object");
382 read
= getMethod(py
, "read");
383 seek
= getMethod(py
, "seek");
384 tell
= getMethod(py
, "tell");
387 PyErr_SetString(PyExc_TypeError
, "Not a file-like object");
394 return new wxPyCBInputStream(py
, read
, seek
, tell
);
397 static PyObject
* getMethod(PyObject
* py
, char* name
) {
398 if (!PyObject_HasAttrString(py
, name
))
400 PyObject
* o
= PyObject_GetAttrString(py
, name
);
401 if (!PyMethod_Check(o
) && !PyCFunction_Check(o
)) {
415 static wxPyInputStream
*new_wxPyInputStream(PyObject
*p
) {
416 wxInputStream
* wxi
= wxPyCBInputStream::create(p
);
418 return new wxPyInputStream(wxi
);
423 static PyObject
*_wrap_new_wxInputStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
424 PyObject
* _resultobj
;
425 wxPyInputStream
* _result
;
427 PyObject
* _obj0
= 0;
428 char *_kwnames
[] = { "p", NULL
};
431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxInputStream",_kwnames
,&_obj0
))
437 _result
= (wxPyInputStream
*)new_wxPyInputStream(_arg0
);
442 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyInputStream_p");
443 _resultobj
= Py_BuildValue("s",_ptemp
);
451 #define wxInputStream_close(_swigobj) (_swigobj->close())
452 static PyObject
*_wrap_wxInputStream_close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
453 PyObject
* _resultobj
;
454 wxPyInputStream
* _arg0
;
455 PyObject
* _argo0
= 0;
456 char *_kwnames
[] = { "self", NULL
};
459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_close",_kwnames
,&_argo0
))
462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_close. Expected _wxPyInputStream_p.");
469 wxInputStream_close(_arg0
);
471 } Py_INCREF(Py_None
);
472 _resultobj
= Py_None
;
476 #define wxInputStream_flush(_swigobj) (_swigobj->flush())
477 static PyObject
*_wrap_wxInputStream_flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
478 PyObject
* _resultobj
;
479 wxPyInputStream
* _arg0
;
480 PyObject
* _argo0
= 0;
481 char *_kwnames
[] = { "self", NULL
};
484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_flush",_kwnames
,&_argo0
))
487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_flush. Expected _wxPyInputStream_p.");
494 wxInputStream_flush(_arg0
);
496 } Py_INCREF(Py_None
);
497 _resultobj
= Py_None
;
501 #define wxInputStream_eof(_swigobj) (_swigobj->eof())
502 static PyObject
*_wrap_wxInputStream_eof(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
503 PyObject
* _resultobj
;
505 wxPyInputStream
* _arg0
;
506 PyObject
* _argo0
= 0;
507 char *_kwnames
[] = { "self", NULL
};
510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_eof",_kwnames
,&_argo0
))
513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_eof. Expected _wxPyInputStream_p.");
520 _result
= (bool )wxInputStream_eof(_arg0
);
522 } _resultobj
= Py_BuildValue("i",_result
);
526 #define wxInputStream_read(_swigobj,_swigarg0) (_swigobj->read(_swigarg0))
527 static PyObject
*_wrap_wxInputStream_read(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
528 PyObject
* _resultobj
;
530 wxPyInputStream
* _arg0
;
531 int _arg1
= (int ) -1;
532 PyObject
* _argo0
= 0;
533 char *_kwnames
[] = { "self","size", NULL
};
536 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_read",_kwnames
,&_argo0
,&_arg1
))
539 if (_argo0
== Py_None
) { _arg0
= NULL
; }
540 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
541 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_read. Expected _wxPyInputStream_p.");
546 _result
= (wxString
*)wxInputStream_read(_arg0
,_arg1
);
550 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
559 #define wxInputStream_readline(_swigobj,_swigarg0) (_swigobj->readline(_swigarg0))
560 static PyObject
*_wrap_wxInputStream_readline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
561 PyObject
* _resultobj
;
563 wxPyInputStream
* _arg0
;
564 int _arg1
= (int ) -1;
565 PyObject
* _argo0
= 0;
566 char *_kwnames
[] = { "self","size", NULL
};
569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_readline",_kwnames
,&_argo0
,&_arg1
))
572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_readline. Expected _wxPyInputStream_p.");
579 _result
= (wxString
*)wxInputStream_readline(_arg0
,_arg1
);
583 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
592 #define wxInputStream_readlines(_swigobj,_swigarg0) (_swigobj->readlines(_swigarg0))
593 static PyObject
*_wrap_wxInputStream_readlines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
594 PyObject
* _resultobj
;
595 wxStringPtrList
* _result
;
596 wxPyInputStream
* _arg0
;
597 int _arg1
= (int ) -1;
598 PyObject
* _argo0
= 0;
599 char *_kwnames
[] = { "self","sizehint", NULL
};
602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_readlines",_kwnames
,&_argo0
,&_arg1
))
605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_readlines. Expected _wxPyInputStream_p.");
612 _result
= (wxStringPtrList
*)wxInputStream_readlines(_arg0
,_arg1
);
616 _resultobj
= PyList_New(_result
->GetCount());
617 wxStringPtrList::Node
*node
= _result
->GetFirst();
618 for (int i
=0; node
; i
++) {
619 wxString
*s
= node
->GetData();
620 PyList_SetItem(_resultobj
, i
, PyString_FromStringAndSize(s
->c_str(), s
->Len()));
621 node
= node
->GetNext();
632 #define wxInputStream_seek(_swigobj,_swigarg0,_swigarg1) (_swigobj->seek(_swigarg0,_swigarg1))
633 static PyObject
*_wrap_wxInputStream_seek(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
634 PyObject
* _resultobj
;
635 wxPyInputStream
* _arg0
;
637 int _arg2
= (int ) 0;
638 PyObject
* _argo0
= 0;
639 char *_kwnames
[] = { "self","offset","whence", NULL
};
642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|i:wxInputStream_seek",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
645 if (_argo0
== Py_None
) { _arg0
= NULL
; }
646 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_seek. Expected _wxPyInputStream_p.");
652 wxInputStream_seek(_arg0
,_arg1
,_arg2
);
654 } Py_INCREF(Py_None
);
655 _resultobj
= Py_None
;
659 #define wxInputStream_tell(_swigobj) (_swigobj->tell())
660 static PyObject
*_wrap_wxInputStream_tell(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
661 PyObject
* _resultobj
;
663 wxPyInputStream
* _arg0
;
664 PyObject
* _argo0
= 0;
665 char *_kwnames
[] = { "self", NULL
};
668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_tell",_kwnames
,&_argo0
))
671 if (_argo0
== Py_None
) { _arg0
= NULL
; }
672 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
673 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_tell. Expected _wxPyInputStream_p.");
678 _result
= (int )wxInputStream_tell(_arg0
);
680 } _resultobj
= Py_BuildValue("i",_result
);
684 static void wxOutputStream_write(wxOutputStream
*self
,const wxString
& str
) {
685 self
->Write(str
.c_str(), str
.Length());
687 static PyObject
*_wrap_wxOutputStream_write(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
688 PyObject
* _resultobj
;
689 wxOutputStream
* _arg0
;
691 PyObject
* _argo0
= 0;
692 PyObject
* _obj1
= 0;
693 char *_kwnames
[] = { "self","str", NULL
};
696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxOutputStream_write",_kwnames
,&_argo0
,&_obj1
))
699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxOutputStream_p")) {
701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxOutputStream_write. Expected _wxOutputStream_p.");
706 #if PYTHON_API_VERSION >= 1009
707 char* tmpPtr
; int tmpSize
;
708 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
709 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
712 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
714 _arg1
= new wxString(tmpPtr
, tmpSize
);
716 if (!PyString_Check(_obj1
)) {
717 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
720 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
724 wxOutputStream_write(_arg0
,*_arg1
);
726 } Py_INCREF(Py_None
);
727 _resultobj
= Py_None
;
735 static PyMethodDef streamscMethods
[] = {
736 { "wxOutputStream_write", (PyCFunction
) _wrap_wxOutputStream_write
, METH_VARARGS
| METH_KEYWORDS
},
737 { "wxInputStream_tell", (PyCFunction
) _wrap_wxInputStream_tell
, METH_VARARGS
| METH_KEYWORDS
},
738 { "wxInputStream_seek", (PyCFunction
) _wrap_wxInputStream_seek
, METH_VARARGS
| METH_KEYWORDS
},
739 { "wxInputStream_readlines", (PyCFunction
) _wrap_wxInputStream_readlines
, METH_VARARGS
| METH_KEYWORDS
},
740 { "wxInputStream_readline", (PyCFunction
) _wrap_wxInputStream_readline
, METH_VARARGS
| METH_KEYWORDS
},
741 { "wxInputStream_read", (PyCFunction
) _wrap_wxInputStream_read
, METH_VARARGS
| METH_KEYWORDS
},
742 { "wxInputStream_eof", (PyCFunction
) _wrap_wxInputStream_eof
, METH_VARARGS
| METH_KEYWORDS
},
743 { "wxInputStream_flush", (PyCFunction
) _wrap_wxInputStream_flush
, METH_VARARGS
| METH_KEYWORDS
},
744 { "wxInputStream_close", (PyCFunction
) _wrap_wxInputStream_close
, METH_VARARGS
| METH_KEYWORDS
},
745 { "new_wxInputStream", (PyCFunction
) _wrap_new_wxInputStream
, METH_VARARGS
| METH_KEYWORDS
},
752 * This table is used by the pointer type-checker
754 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
755 { "_signed_long","_long",0},
756 { "_wxPrintQuality","_wxCoord",0},
757 { "_wxPrintQuality","_int",0},
758 { "_wxPrintQuality","_signed_int",0},
759 { "_wxPrintQuality","_unsigned_int",0},
760 { "_wxPrintQuality","_wxWindowID",0},
761 { "_wxPrintQuality","_uint",0},
762 { "_wxPrintQuality","_EBool",0},
763 { "_wxPrintQuality","_size_t",0},
764 { "_wxPrintQuality","_time_t",0},
765 { "_byte","_unsigned_char",0},
766 { "_long","_unsigned_long",0},
767 { "_long","_signed_long",0},
768 { "_size_t","_wxCoord",0},
769 { "_size_t","_wxPrintQuality",0},
770 { "_size_t","_time_t",0},
771 { "_size_t","_unsigned_int",0},
772 { "_size_t","_int",0},
773 { "_size_t","_wxWindowID",0},
774 { "_size_t","_uint",0},
775 { "_uint","_wxCoord",0},
776 { "_uint","_wxPrintQuality",0},
777 { "_uint","_time_t",0},
778 { "_uint","_size_t",0},
779 { "_uint","_unsigned_int",0},
781 { "_uint","_wxWindowID",0},
782 { "_wxChar","_char",0},
783 { "_char","_wxChar",0},
784 { "_EBool","_wxCoord",0},
785 { "_EBool","_wxPrintQuality",0},
786 { "_EBool","_signed_int",0},
787 { "_EBool","_int",0},
788 { "_EBool","_wxWindowID",0},
789 { "_unsigned_long","_long",0},
790 { "_wxPyInputStream","_class_wxPyInputStream",0},
791 { "_class_wxOutputStream","_wxOutputStream",0},
792 { "_signed_int","_wxCoord",0},
793 { "_signed_int","_wxPrintQuality",0},
794 { "_signed_int","_EBool",0},
795 { "_signed_int","_wxWindowID",0},
796 { "_signed_int","_int",0},
797 { "_WXTYPE","_short",0},
798 { "_WXTYPE","_signed_short",0},
799 { "_WXTYPE","_unsigned_short",0},
800 { "_unsigned_short","_WXTYPE",0},
801 { "_unsigned_short","_short",0},
802 { "_class_wxPyInputStream","_wxPyInputStream",0},
803 { "_signed_short","_WXTYPE",0},
804 { "_signed_short","_short",0},
805 { "_unsigned_char","_byte",0},
806 { "_unsigned_int","_wxCoord",0},
807 { "_unsigned_int","_wxPrintQuality",0},
808 { "_unsigned_int","_time_t",0},
809 { "_unsigned_int","_size_t",0},
810 { "_unsigned_int","_uint",0},
811 { "_unsigned_int","_wxWindowID",0},
812 { "_unsigned_int","_int",0},
813 { "_short","_WXTYPE",0},
814 { "_short","_unsigned_short",0},
815 { "_short","_signed_short",0},
816 { "_wxWindowID","_wxCoord",0},
817 { "_wxWindowID","_wxPrintQuality",0},
818 { "_wxWindowID","_time_t",0},
819 { "_wxWindowID","_size_t",0},
820 { "_wxWindowID","_EBool",0},
821 { "_wxWindowID","_uint",0},
822 { "_wxWindowID","_int",0},
823 { "_wxWindowID","_signed_int",0},
824 { "_wxWindowID","_unsigned_int",0},
825 { "_int","_wxCoord",0},
826 { "_int","_wxPrintQuality",0},
827 { "_int","_time_t",0},
828 { "_int","_size_t",0},
829 { "_int","_EBool",0},
831 { "_int","_wxWindowID",0},
832 { "_int","_unsigned_int",0},
833 { "_int","_signed_int",0},
834 { "_time_t","_wxCoord",0},
835 { "_time_t","_wxPrintQuality",0},
836 { "_time_t","_unsigned_int",0},
837 { "_time_t","_int",0},
838 { "_time_t","_wxWindowID",0},
839 { "_time_t","_uint",0},
840 { "_time_t","_size_t",0},
841 { "_wxCoord","_int",0},
842 { "_wxCoord","_signed_int",0},
843 { "_wxCoord","_unsigned_int",0},
844 { "_wxCoord","_wxWindowID",0},
845 { "_wxCoord","_uint",0},
846 { "_wxCoord","_EBool",0},
847 { "_wxCoord","_size_t",0},
848 { "_wxCoord","_time_t",0},
849 { "_wxCoord","_wxPrintQuality",0},
850 { "_wxOutputStream","_class_wxOutputStream",0},
853 static PyObject
*SWIG_globals
;
857 SWIGEXPORT(void) initstreamsc() {
859 SWIG_globals
= SWIG_newvarlink();
860 m
= Py_InitModule("streamsc", streamscMethods
);
861 d
= PyModule_GetDict(m
);
864 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
865 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);