2 * FILE : src/mac/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>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg
= "String or Unicode type required";
92 static char* wxStringErrorMsg
= "String type required";
95 // definitions of wxStringPtrList and wxPyInputStream
96 #include <wx/listimpl.cpp>
97 WX_DEFINE_LIST(wxStringPtrList
);
100 void wxPyInputStream::close() {
104 void wxPyInputStream::flush() {
108 bool wxPyInputStream::eof() {
115 wxPyInputStream::~wxPyInputStream() {
119 wxString
* wxPyInputStream::read(int size
) {
121 const int BUFSIZE
= 1024;
123 // check if we have a real wxInputStream to work with
125 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
131 char * buf
= new char[BUFSIZE
];
145 while (! wxi
->Eof()) {
146 wxi
->Read(buf
, BUFSIZE
);
147 //*s += wxString(buf, wxi->LastRead());
148 s
->Append(buf
, wxi
->LastRead());
153 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
155 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
159 } else { // Read only size number of characters
167 wxi
->Read(s
->GetWriteBuf(size
+1), size
);
168 s
->UngetWriteBuf(wxi
->LastRead());
171 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
173 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
181 wxString
* wxPyInputStream::readline (int size
) {
182 // check if we have a real wxInputStream to work with
184 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
191 wxString
* s
= new wxString
;
197 // read until \n or byte limit reached
198 for (i
=ch
=0; (ch
!= '\n') && (!wxi
->Eof()) && ((size
< 0) || (i
< size
)); i
++) {
199 *s
+= ch
= wxi
->GetC();
203 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
205 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
212 wxStringPtrList
* wxPyInputStream::readlines (int sizehint
) {
213 // check if we have a real wxInputStream to work with
215 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
220 wxStringPtrList
* l
= new wxStringPtrList();
226 // read sizehint bytes or until EOF
228 for (i
=0; (!wxi
->Eof()) && ((sizehint
< 0) || (i
< sizehint
));) {
229 wxString
* s
= readline();
231 l
->DeleteContents(TRUE
);
240 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
241 l
->DeleteContents(TRUE
);
243 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
250 void wxPyInputStream::seek(int offset
, int whence
) {
252 wxi
->SeekI(offset
, wxSeekMode(whence
));
255 int wxPyInputStream::tell(){
262 // wxInputStream which operates on a Python file-like object
263 class wxPyCBInputStream
: public wxInputStream
{
270 virtual size_t OnSysRead(void *buffer
, size_t bufsize
) {
274 wxPyBeginBlockThreads();
275 PyObject
* arglist
= Py_BuildValue("(i)", bufsize
);
276 PyObject
* result
= PyEval_CallObject(read
, arglist
);
280 if ((result
!= NULL
) && PyString_Check(result
)) {
281 o
= PyString_Size(result
);
283 m_lasterror
= wxSTREAM_EOF
;
286 strncpy((char*)buffer
, PyString_AsString(result
), o
);
291 m_lasterror
= wxSTREAM_READ_ERROR
;
292 wxPyEndBlockThreads();
297 virtual size_t OnSysWrite(const void *buffer
, size_t bufsize
){
298 m_lasterror
= wxSTREAM_WRITE_ERROR
;
302 virtual off_t
OnSysSeek(off_t off
, wxSeekMode mode
){
303 wxPyBeginBlockThreads();
304 PyObject
*arglist
= Py_BuildValue("(ii)", off
, mode
);
305 PyObject
*result
= PyEval_CallObject(seek
, arglist
);
308 wxPyEndBlockThreads();
312 virtual off_t
OnSysTell() const{
313 wxPyBeginBlockThreads();
314 PyObject
* arglist
= Py_BuildValue("()");
315 PyObject
* result
= PyEval_CallObject(tell
, arglist
);
318 if (result
!= NULL
) {
319 o
= PyInt_AsLong(result
);
322 wxPyEndBlockThreads();
326 wxPyCBInputStream(PyObject
*p
, PyObject
*r
, PyObject
*s
, PyObject
*t
)
327 : py(p
), read(r
), seek(s
), tell(t
)
331 ~wxPyCBInputStream() {
332 wxPyBeginBlockThreads();
337 wxPyEndBlockThreads();
340 virtual size_t GetSize() {
342 off_t temp
= OnSysTell();
343 off_t ret
= OnSysSeek(0, wxFromEnd
);
344 OnSysSeek(temp
, wxFromStart
);
351 static wxPyCBInputStream
* create(PyObject
*py
) {
356 if (!PyInstance_Check(py
) && !PyFile_Check(py
)) {
357 PyErr_SetString(PyExc_TypeError
, "Not a file-like object");
361 read
= getMethod(py
, "read");
362 seek
= getMethod(py
, "seek");
363 tell
= getMethod(py
, "tell");
366 PyErr_SetString(PyExc_TypeError
, "Not a file-like object");
373 return new wxPyCBInputStream(py
, read
, seek
, tell
);
376 static PyObject
* getMethod(PyObject
* py
, char* name
) {
377 if (!PyObject_HasAttrString(py
, name
))
379 PyObject
* o
= PyObject_GetAttrString(py
, name
);
380 if (!PyMethod_Check(o
) && !PyCFunction_Check(o
)) {
394 static wxPyInputStream
*new_wxPyInputStream(PyObject
*p
) {
395 wxInputStream
* wxi
= wxPyCBInputStream::create(p
);
397 return new wxPyInputStream(wxi
);
402 static PyObject
*_wrap_new_wxInputStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
403 PyObject
* _resultobj
;
404 wxPyInputStream
* _result
;
406 PyObject
* _obj0
= 0;
407 char *_kwnames
[] = { "p", NULL
};
411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxInputStream",_kwnames
,&_obj0
))
417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
418 _result
= (wxPyInputStream
*)new_wxPyInputStream(_arg0
);
420 wxPyEndAllowThreads(__tstate
);
421 if (PyErr_Occurred()) return NULL
;
423 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyInputStream_p");
424 _resultobj
= Py_BuildValue("s",_ptemp
);
427 _resultobj
= Py_None
;
432 #define wxInputStream_close(_swigobj) (_swigobj->close())
433 static PyObject
*_wrap_wxInputStream_close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
434 PyObject
* _resultobj
;
435 wxPyInputStream
* _arg0
;
436 PyObject
* _argo0
= 0;
437 char *_kwnames
[] = { "self", NULL
};
440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_close",_kwnames
,&_argo0
))
443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_close. Expected _wxPyInputStream_p.");
450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
451 wxInputStream_close(_arg0
);
453 wxPyEndAllowThreads(__tstate
);
454 if (PyErr_Occurred()) return NULL
;
455 } Py_INCREF(Py_None
);
456 _resultobj
= Py_None
;
460 #define wxInputStream_flush(_swigobj) (_swigobj->flush())
461 static PyObject
*_wrap_wxInputStream_flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
462 PyObject
* _resultobj
;
463 wxPyInputStream
* _arg0
;
464 PyObject
* _argo0
= 0;
465 char *_kwnames
[] = { "self", NULL
};
468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_flush",_kwnames
,&_argo0
))
471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_flush. Expected _wxPyInputStream_p.");
478 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
479 wxInputStream_flush(_arg0
);
481 wxPyEndAllowThreads(__tstate
);
482 if (PyErr_Occurred()) return NULL
;
483 } Py_INCREF(Py_None
);
484 _resultobj
= Py_None
;
488 #define wxInputStream_eof(_swigobj) (_swigobj->eof())
489 static PyObject
*_wrap_wxInputStream_eof(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
490 PyObject
* _resultobj
;
492 wxPyInputStream
* _arg0
;
493 PyObject
* _argo0
= 0;
494 char *_kwnames
[] = { "self", NULL
};
497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_eof",_kwnames
,&_argo0
))
500 if (_argo0
== Py_None
) { _arg0
= NULL
; }
501 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
502 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_eof. Expected _wxPyInputStream_p.");
507 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
508 _result
= (bool )wxInputStream_eof(_arg0
);
510 wxPyEndAllowThreads(__tstate
);
511 if (PyErr_Occurred()) return NULL
;
512 } _resultobj
= Py_BuildValue("i",_result
);
516 #define wxInputStream_read(_swigobj,_swigarg0) (_swigobj->read(_swigarg0))
517 static PyObject
*_wrap_wxInputStream_read(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
518 PyObject
* _resultobj
;
520 wxPyInputStream
* _arg0
;
521 int _arg1
= (int ) -1;
522 PyObject
* _argo0
= 0;
523 char *_kwnames
[] = { "self","size", NULL
};
526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_read",_kwnames
,&_argo0
,&_arg1
))
529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_read. Expected _wxPyInputStream_p.");
536 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
537 _result
= (wxString
*)wxInputStream_read(_arg0
,_arg1
);
539 wxPyEndAllowThreads(__tstate
);
540 if (PyErr_Occurred()) return NULL
;
542 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
547 #define wxInputStream_readline(_swigobj,_swigarg0) (_swigobj->readline(_swigarg0))
548 static PyObject
*_wrap_wxInputStream_readline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
549 PyObject
* _resultobj
;
551 wxPyInputStream
* _arg0
;
552 int _arg1
= (int ) -1;
553 PyObject
* _argo0
= 0;
554 char *_kwnames
[] = { "self","size", NULL
};
557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_readline",_kwnames
,&_argo0
,&_arg1
))
560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_readline. Expected _wxPyInputStream_p.");
567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
568 _result
= (wxString
*)wxInputStream_readline(_arg0
,_arg1
);
570 wxPyEndAllowThreads(__tstate
);
571 if (PyErr_Occurred()) return NULL
;
573 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
578 #define wxInputStream_readlines(_swigobj,_swigarg0) (_swigobj->readlines(_swigarg0))
579 static PyObject
*_wrap_wxInputStream_readlines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
580 PyObject
* _resultobj
;
581 wxStringPtrList
* _result
;
582 wxPyInputStream
* _arg0
;
583 int _arg1
= (int ) -1;
584 PyObject
* _argo0
= 0;
585 char *_kwnames
[] = { "self","sizehint", NULL
};
588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_readlines",_kwnames
,&_argo0
,&_arg1
))
591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_readlines. Expected _wxPyInputStream_p.");
598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
599 _result
= (wxStringPtrList
*)wxInputStream_readlines(_arg0
,_arg1
);
601 wxPyEndAllowThreads(__tstate
);
602 if (PyErr_Occurred()) return NULL
;
605 _resultobj
= PyList_New(_result
->GetCount());
606 wxStringPtrList::Node
*node
= _result
->GetFirst();
607 for (int i
=0; node
; i
++) {
608 wxString
*s
= node
->GetData();
609 PyList_SetItem(_resultobj
, i
, PyString_FromStringAndSize(s
->c_str(), s
->Len()));
610 node
= node
->GetNext();
621 #define wxInputStream_seek(_swigobj,_swigarg0,_swigarg1) (_swigobj->seek(_swigarg0,_swigarg1))
622 static PyObject
*_wrap_wxInputStream_seek(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
623 PyObject
* _resultobj
;
624 wxPyInputStream
* _arg0
;
626 int _arg2
= (int ) 0;
627 PyObject
* _argo0
= 0;
628 char *_kwnames
[] = { "self","offset","whence", NULL
};
631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|i:wxInputStream_seek",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_seek. Expected _wxPyInputStream_p.");
641 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
642 wxInputStream_seek(_arg0
,_arg1
,_arg2
);
644 wxPyEndAllowThreads(__tstate
);
645 if (PyErr_Occurred()) return NULL
;
646 } Py_INCREF(Py_None
);
647 _resultobj
= Py_None
;
651 #define wxInputStream_tell(_swigobj) (_swigobj->tell())
652 static PyObject
*_wrap_wxInputStream_tell(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
653 PyObject
* _resultobj
;
655 wxPyInputStream
* _arg0
;
656 PyObject
* _argo0
= 0;
657 char *_kwnames
[] = { "self", NULL
};
660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_tell",_kwnames
,&_argo0
))
663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_tell. Expected _wxPyInputStream_p.");
670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
671 _result
= (int )wxInputStream_tell(_arg0
);
673 wxPyEndAllowThreads(__tstate
);
674 if (PyErr_Occurred()) return NULL
;
675 } _resultobj
= Py_BuildValue("i",_result
);
679 static void wxOutputStream_write(wxOutputStream
*self
,const wxString
& str
) {
680 self
->Write(str
.c_str(), str
.Length());
682 static PyObject
*_wrap_wxOutputStream_write(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
683 PyObject
* _resultobj
;
684 wxOutputStream
* _arg0
;
686 PyObject
* _argo0
= 0;
687 PyObject
* _obj1
= 0;
688 char *_kwnames
[] = { "self","str", NULL
};
691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxOutputStream_write",_kwnames
,&_argo0
,&_obj1
))
694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxOutputStream_p")) {
696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxOutputStream_write. Expected _wxOutputStream_p.");
701 #if PYTHON_API_VERSION >= 1009
702 char* tmpPtr
; int tmpSize
;
703 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
704 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
707 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
709 _arg1
= new wxString(tmpPtr
, tmpSize
);
711 if (!PyString_Check(_obj1
)) {
712 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
715 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
719 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
720 wxOutputStream_write(_arg0
,*_arg1
);
722 wxPyEndAllowThreads(__tstate
);
723 if (PyErr_Occurred()) return NULL
;
724 } Py_INCREF(Py_None
);
725 _resultobj
= Py_None
;
733 static PyMethodDef streamscMethods
[] = {
734 { "wxOutputStream_write", (PyCFunction
) _wrap_wxOutputStream_write
, METH_VARARGS
| METH_KEYWORDS
},
735 { "wxInputStream_tell", (PyCFunction
) _wrap_wxInputStream_tell
, METH_VARARGS
| METH_KEYWORDS
},
736 { "wxInputStream_seek", (PyCFunction
) _wrap_wxInputStream_seek
, METH_VARARGS
| METH_KEYWORDS
},
737 { "wxInputStream_readlines", (PyCFunction
) _wrap_wxInputStream_readlines
, METH_VARARGS
| METH_KEYWORDS
},
738 { "wxInputStream_readline", (PyCFunction
) _wrap_wxInputStream_readline
, METH_VARARGS
| METH_KEYWORDS
},
739 { "wxInputStream_read", (PyCFunction
) _wrap_wxInputStream_read
, METH_VARARGS
| METH_KEYWORDS
},
740 { "wxInputStream_eof", (PyCFunction
) _wrap_wxInputStream_eof
, METH_VARARGS
| METH_KEYWORDS
},
741 { "wxInputStream_flush", (PyCFunction
) _wrap_wxInputStream_flush
, METH_VARARGS
| METH_KEYWORDS
},
742 { "wxInputStream_close", (PyCFunction
) _wrap_wxInputStream_close
, METH_VARARGS
| METH_KEYWORDS
},
743 { "new_wxInputStream", (PyCFunction
) _wrap_new_wxInputStream
, METH_VARARGS
| METH_KEYWORDS
},
750 * This table is used by the pointer type-checker
752 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
753 { "_signed_long","_long",0},
754 { "_wxPrintQuality","_wxCoord",0},
755 { "_wxPrintQuality","_int",0},
756 { "_wxPrintQuality","_signed_int",0},
757 { "_wxPrintQuality","_unsigned_int",0},
758 { "_wxPrintQuality","_wxWindowID",0},
759 { "_wxPrintQuality","_uint",0},
760 { "_wxPrintQuality","_EBool",0},
761 { "_wxPrintQuality","_size_t",0},
762 { "_wxPrintQuality","_time_t",0},
763 { "_byte","_unsigned_char",0},
764 { "_long","_unsigned_long",0},
765 { "_long","_signed_long",0},
766 { "_size_t","_wxCoord",0},
767 { "_size_t","_wxPrintQuality",0},
768 { "_size_t","_time_t",0},
769 { "_size_t","_unsigned_int",0},
770 { "_size_t","_int",0},
771 { "_size_t","_wxWindowID",0},
772 { "_size_t","_uint",0},
773 { "_uint","_wxCoord",0},
774 { "_uint","_wxPrintQuality",0},
775 { "_uint","_time_t",0},
776 { "_uint","_size_t",0},
777 { "_uint","_unsigned_int",0},
779 { "_uint","_wxWindowID",0},
780 { "_wxChar","_char",0},
781 { "_char","_wxChar",0},
782 { "_EBool","_wxCoord",0},
783 { "_EBool","_wxPrintQuality",0},
784 { "_EBool","_signed_int",0},
785 { "_EBool","_int",0},
786 { "_EBool","_wxWindowID",0},
787 { "_unsigned_long","_long",0},
788 { "_signed_int","_wxCoord",0},
789 { "_signed_int","_wxPrintQuality",0},
790 { "_signed_int","_EBool",0},
791 { "_signed_int","_wxWindowID",0},
792 { "_signed_int","_int",0},
793 { "_WXTYPE","_short",0},
794 { "_WXTYPE","_signed_short",0},
795 { "_WXTYPE","_unsigned_short",0},
796 { "_unsigned_short","_WXTYPE",0},
797 { "_unsigned_short","_short",0},
798 { "_signed_short","_WXTYPE",0},
799 { "_signed_short","_short",0},
800 { "_unsigned_char","_byte",0},
801 { "_unsigned_int","_wxCoord",0},
802 { "_unsigned_int","_wxPrintQuality",0},
803 { "_unsigned_int","_time_t",0},
804 { "_unsigned_int","_size_t",0},
805 { "_unsigned_int","_uint",0},
806 { "_unsigned_int","_wxWindowID",0},
807 { "_unsigned_int","_int",0},
808 { "_short","_WXTYPE",0},
809 { "_short","_unsigned_short",0},
810 { "_short","_signed_short",0},
811 { "_wxWindowID","_wxCoord",0},
812 { "_wxWindowID","_wxPrintQuality",0},
813 { "_wxWindowID","_time_t",0},
814 { "_wxWindowID","_size_t",0},
815 { "_wxWindowID","_EBool",0},
816 { "_wxWindowID","_uint",0},
817 { "_wxWindowID","_int",0},
818 { "_wxWindowID","_signed_int",0},
819 { "_wxWindowID","_unsigned_int",0},
820 { "_int","_wxCoord",0},
821 { "_int","_wxPrintQuality",0},
822 { "_int","_time_t",0},
823 { "_int","_size_t",0},
824 { "_int","_EBool",0},
826 { "_int","_wxWindowID",0},
827 { "_int","_unsigned_int",0},
828 { "_int","_signed_int",0},
829 { "_time_t","_wxCoord",0},
830 { "_time_t","_wxPrintQuality",0},
831 { "_time_t","_unsigned_int",0},
832 { "_time_t","_int",0},
833 { "_time_t","_wxWindowID",0},
834 { "_time_t","_uint",0},
835 { "_time_t","_size_t",0},
836 { "_wxCoord","_int",0},
837 { "_wxCoord","_signed_int",0},
838 { "_wxCoord","_unsigned_int",0},
839 { "_wxCoord","_wxWindowID",0},
840 { "_wxCoord","_uint",0},
841 { "_wxCoord","_EBool",0},
842 { "_wxCoord","_size_t",0},
843 { "_wxCoord","_time_t",0},
844 { "_wxCoord","_wxPrintQuality",0},
847 static PyObject
*SWIG_globals
;
851 SWIGEXPORT(void) initstreamsc() {
853 SWIG_globals
= SWIG_newvarlink();
854 m
= Py_InitModule("streamsc", streamscMethods
);
855 d
= PyModule_GetDict(m
);
857 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
860 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
861 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);