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 810)
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
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initstreamsc
55 #define SWIG_name "streamsc"
58 #include <wx/stream.h>
61 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
65 } else if (target
== Py_None
) {
69 if (!PyList_Check(target
)) {
71 target
= PyList_New(0);
72 PyList_Append(target
, o2
);
75 PyList_Append(target
,o
);
81 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
87 } else if (target
== Py_None
) {
91 if (!PyTuple_Check(target
)) {
93 target
= PyTuple_New(1);
94 PyTuple_SetItem(target
, 0, o2
);
97 PyTuple_SetItem(o3
, 0, o
);
100 target
= PySequence_Concat(o2
, o3
);
107 static char* wxStringErrorMsg
= "string type is required for parameter";
109 // definitions of wxStringPtrList and wxPyInputStream
110 #include <wx/listimpl.cpp>
111 WX_DEFINE_LIST(wxStringPtrList
);
114 void wxPyInputStream::close() {
118 void wxPyInputStream::flush() {
122 bool wxPyInputStream::eof() {
129 wxPyInputStream::~wxPyInputStream() {
133 wxString
* wxPyInputStream::read(int size
) {
135 const int BUFSIZE
= 1024;
137 // check if we have a real wxInputStream to work with
139 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
145 char * buf
= new char[BUFSIZE
];
159 wxPy_BEGIN_ALLOW_THREADS
;
160 while (! wxi
->Eof()) {
161 wxi
->Read(buf
, BUFSIZE
);
162 //*s += wxString(buf, wxi->LastRead());
163 s
->Append(buf
, wxi
->LastRead());
166 wxPy_END_ALLOW_THREADS
;
169 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
171 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
175 } else { // Read only size number of characters
183 wxPy_BEGIN_ALLOW_THREADS
;
184 wxi
->Read(s
->GetWriteBuf(size
+1), size
);
185 s
->UngetWriteBuf(wxi
->LastRead());
186 wxPy_END_ALLOW_THREADS
;
189 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
191 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
199 wxString
* wxPyInputStream::readline (int size
) {
200 // check if we have a real wxInputStream to work with
202 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
209 wxString
* s
= new wxString
;
215 // read until \n or byte limit reached
216 wxPy_BEGIN_ALLOW_THREADS
;
217 for (i
=ch
=0; (ch
!= '\n') && (!wxi
->Eof()) && ((size
< 0) || (i
< size
)); i
++) {
218 *s
+= ch
= wxi
->GetC();
220 wxPy_END_ALLOW_THREADS
;
223 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
225 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
232 wxStringPtrList
* wxPyInputStream::readlines (int sizehint
) {
233 // check if we have a real wxInputStream to work with
235 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
240 wxStringPtrList
* l
= new wxStringPtrList();
246 // read sizehint bytes or until EOF
247 wxPy_BEGIN_ALLOW_THREADS
;
249 for (i
=0; (!wxi
->Eof()) && ((sizehint
< 0) || (i
< sizehint
));) {
250 wxString
* s
= readline();
252 l
->DeleteContents(TRUE
);
259 wxPy_END_ALLOW_THREADS
;
262 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
263 l
->DeleteContents(TRUE
);
265 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
272 void wxPyInputStream::seek(int offset
, int whence
) {
274 wxi
->SeekI(offset
, wxSeekMode(whence
));
277 int wxPyInputStream::tell(){
284 // wxInputStream which operates on a Python file-like object
285 class wxPyCBInputStream
: public wxInputStream
{
292 virtual size_t OnSysRead(void *buffer
, size_t bufsize
) {
296 bool doSave
= wxPyRestoreThread();
297 PyObject
* arglist
= Py_BuildValue("(i)", bufsize
);
298 PyObject
* result
= PyEval_CallObject(read
, arglist
);
302 if ((result
!= NULL
) && PyString_Check(result
)) {
303 o
= PyString_Size(result
);
305 m_lasterror
= wxSTREAM_EOF
;
308 strncpy((char*)buffer
, PyString_AsString(result
), o
);
313 m_lasterror
= wxSTREAM_READ_ERROR
;
314 wxPySaveThread(doSave
);
319 virtual size_t OnSysWrite(const void *buffer
, size_t bufsize
){
320 m_lasterror
= wxSTREAM_WRITE_ERROR
;
324 virtual off_t
OnSysSeek(off_t off
, wxSeekMode mode
){
325 bool doSave
= wxPyRestoreThread();
326 PyObject
*arglist
= Py_BuildValue("(ii)", off
, mode
);
327 PyObject
*result
= PyEval_CallObject(seek
, arglist
);
330 wxPySaveThread(doSave
);
334 virtual off_t
OnSysTell() const{
335 bool doSave
= wxPyRestoreThread();
336 PyObject
* arglist
= Py_BuildValue("()");
337 PyObject
* result
= PyEval_CallObject(tell
, arglist
);
340 if (result
!= NULL
) {
341 o
= PyInt_AsLong(result
);
344 wxPySaveThread(doSave
);
348 wxPyCBInputStream(PyObject
*p
, PyObject
*r
, PyObject
*s
, PyObject
*t
)
349 : py(p
), read(r
), seek(s
), tell(t
)
353 ~wxPyCBInputStream() {
354 bool doSave
= wxPyRestoreThread();
359 wxPySaveThread(doSave
);
362 virtual size_t GetSize() {
364 off_t temp
= OnSysTell();
365 off_t ret
= OnSysSeek(0, wxFromEnd
);
366 OnSysSeek(temp
, wxFromStart
);
373 static wxPyCBInputStream
* create(PyObject
*py
) {
378 if (!PyInstance_Check(py
) && !PyFile_Check(py
)) {
379 PyErr_SetString(PyExc_TypeError
, "Not a file-like object");
383 read
= getMethod(py
, "read");
384 seek
= getMethod(py
, "seek");
385 tell
= getMethod(py
, "tell");
388 PyErr_SetString(PyExc_TypeError
, "Not a file-like object");
395 return new wxPyCBInputStream(py
, read
, seek
, tell
);
398 static PyObject
* getMethod(PyObject
* py
, char* name
) {
399 if (!PyObject_HasAttrString(py
, name
))
401 PyObject
* o
= PyObject_GetAttrString(py
, name
);
402 if (!PyMethod_Check(o
) && !PyCFunction_Check(o
))
414 static wxPyInputStream
*new_wxPyInputStream(PyObject
*p
) {
415 wxInputStream
* wxi
= wxPyCBInputStream::create(p
);
417 return new wxPyInputStream(wxi
);
422 static PyObject
*_wrap_new_wxInputStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
423 PyObject
* _resultobj
;
424 wxPyInputStream
* _result
;
426 PyObject
* _obj0
= 0;
427 char *_kwnames
[] = { "p", NULL
};
430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxInputStream",_kwnames
,&_obj0
))
436 _result
= (wxPyInputStream
*)new_wxPyInputStream(_arg0
);
441 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyInputStream_p");
442 _resultobj
= Py_BuildValue("s",_ptemp
);
450 #define wxInputStream_close(_swigobj) (_swigobj->close())
451 static PyObject
*_wrap_wxInputStream_close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
452 PyObject
* _resultobj
;
453 wxPyInputStream
* _arg0
;
454 PyObject
* _argo0
= 0;
455 char *_kwnames
[] = { "self", NULL
};
458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_close",_kwnames
,&_argo0
))
461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_close. Expected _wxPyInputStream_p.");
468 wxInputStream_close(_arg0
);
470 } Py_INCREF(Py_None
);
471 _resultobj
= Py_None
;
475 #define wxInputStream_flush(_swigobj) (_swigobj->flush())
476 static PyObject
*_wrap_wxInputStream_flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
477 PyObject
* _resultobj
;
478 wxPyInputStream
* _arg0
;
479 PyObject
* _argo0
= 0;
480 char *_kwnames
[] = { "self", NULL
};
483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_flush",_kwnames
,&_argo0
))
486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_flush. Expected _wxPyInputStream_p.");
493 wxInputStream_flush(_arg0
);
495 } Py_INCREF(Py_None
);
496 _resultobj
= Py_None
;
500 #define wxInputStream_eof(_swigobj) (_swigobj->eof())
501 static PyObject
*_wrap_wxInputStream_eof(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
502 PyObject
* _resultobj
;
504 wxPyInputStream
* _arg0
;
505 PyObject
* _argo0
= 0;
506 char *_kwnames
[] = { "self", NULL
};
509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_eof",_kwnames
,&_argo0
))
512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_eof. Expected _wxPyInputStream_p.");
519 _result
= (bool )wxInputStream_eof(_arg0
);
521 } _resultobj
= Py_BuildValue("i",_result
);
525 #define wxInputStream_read(_swigobj,_swigarg0) (_swigobj->read(_swigarg0))
526 static PyObject
*_wrap_wxInputStream_read(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
527 PyObject
* _resultobj
;
529 wxPyInputStream
* _arg0
;
530 int _arg1
= (int ) -1;
531 PyObject
* _argo0
= 0;
532 char *_kwnames
[] = { "self","size", NULL
};
535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_read",_kwnames
,&_argo0
,&_arg1
))
538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_read. Expected _wxPyInputStream_p.");
545 _result
= (wxString
*)wxInputStream_read(_arg0
,_arg1
);
549 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
558 #define wxInputStream_readline(_swigobj,_swigarg0) (_swigobj->readline(_swigarg0))
559 static PyObject
*_wrap_wxInputStream_readline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
560 PyObject
* _resultobj
;
562 wxPyInputStream
* _arg0
;
563 int _arg1
= (int ) -1;
564 PyObject
* _argo0
= 0;
565 char *_kwnames
[] = { "self","size", NULL
};
568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_readline",_kwnames
,&_argo0
,&_arg1
))
571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_readline. Expected _wxPyInputStream_p.");
578 _result
= (wxString
*)wxInputStream_readline(_arg0
,_arg1
);
582 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
591 #define wxInputStream_readlines(_swigobj,_swigarg0) (_swigobj->readlines(_swigarg0))
592 static PyObject
*_wrap_wxInputStream_readlines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
593 PyObject
* _resultobj
;
594 wxStringPtrList
* _result
;
595 wxPyInputStream
* _arg0
;
596 int _arg1
= (int ) -1;
597 PyObject
* _argo0
= 0;
598 char *_kwnames
[] = { "self","sizehint", NULL
};
601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_readlines",_kwnames
,&_argo0
,&_arg1
))
604 if (_argo0
== Py_None
) { _arg0
= NULL
; }
605 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
606 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_readlines. Expected _wxPyInputStream_p.");
611 _result
= (wxStringPtrList
*)wxInputStream_readlines(_arg0
,_arg1
);
615 _resultobj
= PyList_New(_result
->GetCount());
616 wxStringPtrList::Node
*node
= _result
->GetFirst();
617 for (int i
=0; node
; i
++) {
618 wxString
*s
= node
->GetData();
619 PyList_SetItem(_resultobj
, i
, PyString_FromStringAndSize(s
->c_str(), s
->Len()));
620 node
= node
->GetNext();
631 #define wxInputStream_seek(_swigobj,_swigarg0,_swigarg1) (_swigobj->seek(_swigarg0,_swigarg1))
632 static PyObject
*_wrap_wxInputStream_seek(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
633 PyObject
* _resultobj
;
634 wxPyInputStream
* _arg0
;
636 int _arg2
= (int ) 0;
637 PyObject
* _argo0
= 0;
638 char *_kwnames
[] = { "self","offset","whence", NULL
};
641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|i:wxInputStream_seek",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
644 if (_argo0
== Py_None
) { _arg0
= NULL
; }
645 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_seek. Expected _wxPyInputStream_p.");
651 wxInputStream_seek(_arg0
,_arg1
,_arg2
);
653 } Py_INCREF(Py_None
);
654 _resultobj
= Py_None
;
658 #define wxInputStream_tell(_swigobj) (_swigobj->tell())
659 static PyObject
*_wrap_wxInputStream_tell(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
660 PyObject
* _resultobj
;
662 wxPyInputStream
* _arg0
;
663 PyObject
* _argo0
= 0;
664 char *_kwnames
[] = { "self", NULL
};
667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_tell",_kwnames
,&_argo0
))
670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_tell. Expected _wxPyInputStream_p.");
677 _result
= (int )wxInputStream_tell(_arg0
);
679 } _resultobj
= Py_BuildValue("i",_result
);
683 static void wxOutputStream_write(wxOutputStream
*self
,const wxString
& str
) {
684 self
->Write(str
.c_str(), str
.Length());
686 static PyObject
*_wrap_wxOutputStream_write(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
687 PyObject
* _resultobj
;
688 wxOutputStream
* _arg0
;
690 PyObject
* _argo0
= 0;
691 PyObject
* _obj1
= 0;
692 char *_kwnames
[] = { "self","str", NULL
};
695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxOutputStream_write",_kwnames
,&_argo0
,&_obj1
))
698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxOutputStream_p")) {
700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxOutputStream_write. Expected _wxOutputStream_p.");
705 if (!PyString_Check(_obj1
)) {
706 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
709 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
712 wxOutputStream_write(_arg0
,*_arg1
);
714 } Py_INCREF(Py_None
);
715 _resultobj
= Py_None
;
723 static PyMethodDef streamscMethods
[] = {
724 { "wxOutputStream_write", (PyCFunction
) _wrap_wxOutputStream_write
, METH_VARARGS
| METH_KEYWORDS
},
725 { "wxInputStream_tell", (PyCFunction
) _wrap_wxInputStream_tell
, METH_VARARGS
| METH_KEYWORDS
},
726 { "wxInputStream_seek", (PyCFunction
) _wrap_wxInputStream_seek
, METH_VARARGS
| METH_KEYWORDS
},
727 { "wxInputStream_readlines", (PyCFunction
) _wrap_wxInputStream_readlines
, METH_VARARGS
| METH_KEYWORDS
},
728 { "wxInputStream_readline", (PyCFunction
) _wrap_wxInputStream_readline
, METH_VARARGS
| METH_KEYWORDS
},
729 { "wxInputStream_read", (PyCFunction
) _wrap_wxInputStream_read
, METH_VARARGS
| METH_KEYWORDS
},
730 { "wxInputStream_eof", (PyCFunction
) _wrap_wxInputStream_eof
, METH_VARARGS
| METH_KEYWORDS
},
731 { "wxInputStream_flush", (PyCFunction
) _wrap_wxInputStream_flush
, METH_VARARGS
| METH_KEYWORDS
},
732 { "wxInputStream_close", (PyCFunction
) _wrap_wxInputStream_close
, METH_VARARGS
| METH_KEYWORDS
},
733 { "new_wxInputStream", (PyCFunction
) _wrap_new_wxInputStream
, METH_VARARGS
| METH_KEYWORDS
},
740 * This table is used by the pointer type-checker
742 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
743 { "_signed_long","_long",0},
744 { "_wxPrintQuality","_wxCoord",0},
745 { "_wxPrintQuality","_int",0},
746 { "_wxPrintQuality","_signed_int",0},
747 { "_wxPrintQuality","_unsigned_int",0},
748 { "_wxPrintQuality","_wxWindowID",0},
749 { "_wxPrintQuality","_uint",0},
750 { "_wxPrintQuality","_EBool",0},
751 { "_wxPrintQuality","_size_t",0},
752 { "_wxPrintQuality","_time_t",0},
753 { "_byte","_unsigned_char",0},
754 { "_long","_unsigned_long",0},
755 { "_long","_signed_long",0},
756 { "_size_t","_wxCoord",0},
757 { "_size_t","_wxPrintQuality",0},
758 { "_size_t","_time_t",0},
759 { "_size_t","_unsigned_int",0},
760 { "_size_t","_int",0},
761 { "_size_t","_wxWindowID",0},
762 { "_size_t","_uint",0},
763 { "_uint","_wxCoord",0},
764 { "_uint","_wxPrintQuality",0},
765 { "_uint","_time_t",0},
766 { "_uint","_size_t",0},
767 { "_uint","_unsigned_int",0},
769 { "_uint","_wxWindowID",0},
770 { "_wxChar","_char",0},
771 { "_char","_wxChar",0},
772 { "_EBool","_wxCoord",0},
773 { "_EBool","_wxPrintQuality",0},
774 { "_EBool","_signed_int",0},
775 { "_EBool","_int",0},
776 { "_EBool","_wxWindowID",0},
777 { "_unsigned_long","_long",0},
778 { "_wxPyInputStream","_class_wxPyInputStream",0},
779 { "_class_wxOutputStream","_wxOutputStream",0},
780 { "_signed_int","_wxCoord",0},
781 { "_signed_int","_wxPrintQuality",0},
782 { "_signed_int","_EBool",0},
783 { "_signed_int","_wxWindowID",0},
784 { "_signed_int","_int",0},
785 { "_WXTYPE","_short",0},
786 { "_WXTYPE","_signed_short",0},
787 { "_WXTYPE","_unsigned_short",0},
788 { "_unsigned_short","_WXTYPE",0},
789 { "_unsigned_short","_short",0},
790 { "_class_wxPyInputStream","_wxPyInputStream",0},
791 { "_signed_short","_WXTYPE",0},
792 { "_signed_short","_short",0},
793 { "_unsigned_char","_byte",0},
794 { "_unsigned_int","_wxCoord",0},
795 { "_unsigned_int","_wxPrintQuality",0},
796 { "_unsigned_int","_time_t",0},
797 { "_unsigned_int","_size_t",0},
798 { "_unsigned_int","_uint",0},
799 { "_unsigned_int","_wxWindowID",0},
800 { "_unsigned_int","_int",0},
801 { "_short","_WXTYPE",0},
802 { "_short","_unsigned_short",0},
803 { "_short","_signed_short",0},
804 { "_wxWindowID","_wxCoord",0},
805 { "_wxWindowID","_wxPrintQuality",0},
806 { "_wxWindowID","_time_t",0},
807 { "_wxWindowID","_size_t",0},
808 { "_wxWindowID","_EBool",0},
809 { "_wxWindowID","_uint",0},
810 { "_wxWindowID","_int",0},
811 { "_wxWindowID","_signed_int",0},
812 { "_wxWindowID","_unsigned_int",0},
813 { "_int","_wxCoord",0},
814 { "_int","_wxPrintQuality",0},
815 { "_int","_time_t",0},
816 { "_int","_size_t",0},
817 { "_int","_EBool",0},
819 { "_int","_wxWindowID",0},
820 { "_int","_unsigned_int",0},
821 { "_int","_signed_int",0},
822 { "_time_t","_wxCoord",0},
823 { "_time_t","_wxPrintQuality",0},
824 { "_time_t","_unsigned_int",0},
825 { "_time_t","_int",0},
826 { "_time_t","_wxWindowID",0},
827 { "_time_t","_uint",0},
828 { "_time_t","_size_t",0},
829 { "_wxCoord","_int",0},
830 { "_wxCoord","_signed_int",0},
831 { "_wxCoord","_unsigned_int",0},
832 { "_wxCoord","_wxWindowID",0},
833 { "_wxCoord","_uint",0},
834 { "_wxCoord","_EBool",0},
835 { "_wxCoord","_size_t",0},
836 { "_wxCoord","_time_t",0},
837 { "_wxCoord","_wxPrintQuality",0},
838 { "_wxOutputStream","_class_wxOutputStream",0},
841 static PyObject
*SWIG_globals
;
845 SWIGEXPORT(void) initstreamsc() {
847 SWIG_globals
= SWIG_newvarlink();
848 m
= Py_InitModule("streamsc", streamscMethods
);
849 d
= PyModule_GetDict(m
);
852 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
853 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);