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 
  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 #if PYTHON_API_VERSION >= 1009 
 109     static char* wxStringErrorMsg 
= "String or Unicode type required"; 
 111     static char* wxStringErrorMsg 
= "string type is required for parameter"; 
 114 // definitions of wxStringPtrList and wxPyInputStream 
 115 #include <wx/listimpl.cpp> 
 116 WX_DEFINE_LIST(wxStringPtrList
); 
 119 void wxPyInputStream::close() { 
 123 void wxPyInputStream::flush() { 
 127 bool wxPyInputStream::eof() { 
 134 wxPyInputStream::~wxPyInputStream() { 
 138 wxString
* wxPyInputStream::read(int size
) { 
 140     const int BUFSIZE 
= 1024; 
 142     // check if we have a real wxInputStream to work with 
 144         PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below"); 
 150         char * buf 
= new char[BUFSIZE
]; 
 164         wxPy_BEGIN_ALLOW_THREADS
; 
 165         while (! wxi
->Eof()) { 
 166             wxi
->Read(buf
, BUFSIZE
); 
 167             //*s += wxString(buf, wxi->LastRead()); 
 168             s
->Append(buf
, wxi
->LastRead()); 
 171         wxPy_END_ALLOW_THREADS
; 
 174         if (wxi
->LastError() == wxSTREAM_READ_ERROR
) { 
 176             PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream"); 
 180     } else {  // Read only size number of characters 
 188         wxPy_BEGIN_ALLOW_THREADS
; 
 189         wxi
->Read(s
->GetWriteBuf(size
+1), size
); 
 190         s
->UngetWriteBuf(wxi
->LastRead()); 
 191         wxPy_END_ALLOW_THREADS
; 
 194         if (wxi
->LastError() == wxSTREAM_READ_ERROR
) { 
 196             PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream"); 
 204 wxString
* wxPyInputStream::readline (int size
) { 
 205     // check if we have a real wxInputStream to work with 
 207         PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below"); 
 214     wxString
* s 
= new wxString
; 
 220     // read until \n or byte limit reached 
 221     wxPy_BEGIN_ALLOW_THREADS
; 
 222     for (i
=ch
=0; (ch 
!= '\n') && (!wxi
->Eof()) && ((size 
< 0) || (i 
< size
)); i
++) { 
 223         *s 
+= ch 
= wxi
->GetC(); 
 225     wxPy_END_ALLOW_THREADS
; 
 228     if (wxi
->LastError() == wxSTREAM_READ_ERROR
) { 
 230         PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream"); 
 237 wxStringPtrList
* wxPyInputStream::readlines (int sizehint
) { 
 238     // check if we have a real wxInputStream to work with 
 240         PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below"); 
 245     wxStringPtrList
* l 
= new wxStringPtrList(); 
 251     // read sizehint bytes or until EOF 
 252     wxPy_BEGIN_ALLOW_THREADS
; 
 254     for (i
=0; (!wxi
->Eof()) && ((sizehint 
< 0) || (i 
< sizehint
));) { 
 255         wxString
* s 
= readline(); 
 257             l
->DeleteContents(TRUE
); 
 264     wxPy_END_ALLOW_THREADS
; 
 267     if (wxi
->LastError() == wxSTREAM_READ_ERROR
) { 
 268         l
->DeleteContents(TRUE
); 
 270         PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream"); 
 277 void wxPyInputStream::seek(int offset
, int whence
) { 
 279         wxi
->SeekI(offset
, wxSeekMode(whence
)); 
 282 int wxPyInputStream::tell(){ 
 289 // wxInputStream which operates on a Python file-like object 
 290 class wxPyCBInputStream 
: public wxInputStream 
{ 
 297     virtual size_t OnSysRead(void *buffer
, size_t bufsize
) { 
 301         bool doSave 
= wxPyRestoreThread(); 
 302         PyObject
* arglist 
= Py_BuildValue("(i)", bufsize
); 
 303         PyObject
* result 
= PyEval_CallObject(read
, arglist
); 
 307         if ((result 
!= NULL
) && PyString_Check(result
)) { 
 308             o 
= PyString_Size(result
); 
 310                 m_lasterror 
= wxSTREAM_EOF
; 
 313             strncpy((char*)buffer
, PyString_AsString(result
), o
); 
 318             m_lasterror 
= wxSTREAM_READ_ERROR
; 
 319         wxPySaveThread(doSave
); 
 324     virtual size_t OnSysWrite(const void *buffer
, size_t bufsize
){ 
 325         m_lasterror 
= wxSTREAM_WRITE_ERROR
; 
 329     virtual off_t 
OnSysSeek(off_t off
, wxSeekMode mode
){ 
 330         bool doSave 
= wxPyRestoreThread(); 
 331         PyObject
*arglist 
= Py_BuildValue("(ii)", off
, mode
); 
 332         PyObject
*result 
= PyEval_CallObject(seek
, arglist
); 
 335         wxPySaveThread(doSave
); 
 339     virtual off_t 
OnSysTell() const{ 
 340         bool doSave 
= wxPyRestoreThread(); 
 341         PyObject
* arglist 
= Py_BuildValue("()"); 
 342         PyObject
* result 
= PyEval_CallObject(tell
, arglist
); 
 345         if (result 
!= NULL
) { 
 346             o 
= PyInt_AsLong(result
); 
 349         wxPySaveThread(doSave
); 
 353     wxPyCBInputStream(PyObject 
*p
, PyObject 
*r
, PyObject 
*s
, PyObject 
*t
) 
 354         : py(p
), read(r
), seek(s
), tell(t
) 
 358     ~wxPyCBInputStream() { 
 359         bool doSave 
= wxPyRestoreThread(); 
 364         wxPySaveThread(doSave
); 
 367     virtual size_t GetSize() { 
 369             off_t temp 
= OnSysTell(); 
 370             off_t ret 
= OnSysSeek(0, wxFromEnd
); 
 371             OnSysSeek(temp
, wxFromStart
); 
 378     static wxPyCBInputStream
* create(PyObject 
*py
) { 
 383         if (!PyInstance_Check(py
) && !PyFile_Check(py
)) { 
 384             PyErr_SetString(PyExc_TypeError
, "Not a file-like object"); 
 388         read 
= getMethod(py
, "read"); 
 389         seek 
= getMethod(py
, "seek"); 
 390         tell 
= getMethod(py
, "tell"); 
 393             PyErr_SetString(PyExc_TypeError
, "Not a file-like object"); 
 400         return new wxPyCBInputStream(py
, read
, seek
, tell
); 
 403     static PyObject
* getMethod(PyObject
* py
, char* name
) { 
 404         if (!PyObject_HasAttrString(py
, name
)) 
 406         PyObject
* o 
= PyObject_GetAttrString(py
, name
); 
 407         if (!PyMethod_Check(o
) && !PyCFunction_Check(o
)) { 
 421 static wxPyInputStream 
*new_wxPyInputStream(PyObject 
*p
) { 
 422             wxInputStream
* wxi 
= wxPyCBInputStream::create(p
); 
 424                 return new wxPyInputStream(wxi
); 
 429 static PyObject 
*_wrap_new_wxInputStream(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 430     PyObject 
* _resultobj
; 
 431     wxPyInputStream 
* _result
; 
 433     PyObject 
* _obj0 
= 0; 
 434     char *_kwnames
[] = { "p", NULL 
}; 
 437     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxInputStream",_kwnames
,&_obj0
))  
 443         _result 
= (wxPyInputStream 
*)new_wxPyInputStream(_arg0
); 
 448         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyInputStream_p"); 
 449         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 457 #define wxInputStream_close(_swigobj)  (_swigobj->close()) 
 458 static PyObject 
*_wrap_wxInputStream_close(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 459     PyObject 
* _resultobj
; 
 460     wxPyInputStream 
* _arg0
; 
 461     PyObject 
* _argo0 
= 0; 
 462     char *_kwnames
[] = { "self", NULL 
}; 
 465     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_close",_kwnames
,&_argo0
))  
 468         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 469         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) { 
 470             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_close. Expected _wxPyInputStream_p."); 
 475         wxInputStream_close(_arg0
); 
 477 }    Py_INCREF(Py_None
); 
 478     _resultobj 
= Py_None
; 
 482 #define wxInputStream_flush(_swigobj)  (_swigobj->flush()) 
 483 static PyObject 
*_wrap_wxInputStream_flush(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 484     PyObject 
* _resultobj
; 
 485     wxPyInputStream 
* _arg0
; 
 486     PyObject 
* _argo0 
= 0; 
 487     char *_kwnames
[] = { "self", NULL 
}; 
 490     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_flush",_kwnames
,&_argo0
))  
 493         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 494         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) { 
 495             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_flush. Expected _wxPyInputStream_p."); 
 500         wxInputStream_flush(_arg0
); 
 502 }    Py_INCREF(Py_None
); 
 503     _resultobj 
= Py_None
; 
 507 #define wxInputStream_eof(_swigobj)  (_swigobj->eof()) 
 508 static PyObject 
*_wrap_wxInputStream_eof(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 509     PyObject 
* _resultobj
; 
 511     wxPyInputStream 
* _arg0
; 
 512     PyObject 
* _argo0 
= 0; 
 513     char *_kwnames
[] = { "self", NULL 
}; 
 516     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_eof",_kwnames
,&_argo0
))  
 519         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 520         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) { 
 521             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_eof. Expected _wxPyInputStream_p."); 
 526         _result 
= (bool )wxInputStream_eof(_arg0
); 
 528 }    _resultobj 
= Py_BuildValue("i",_result
); 
 532 #define wxInputStream_read(_swigobj,_swigarg0)  (_swigobj->read(_swigarg0)) 
 533 static PyObject 
*_wrap_wxInputStream_read(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 534     PyObject 
* _resultobj
; 
 536     wxPyInputStream 
* _arg0
; 
 537     int  _arg1 
= (int ) -1; 
 538     PyObject 
* _argo0 
= 0; 
 539     char *_kwnames
[] = { "self","size", NULL 
}; 
 542     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_read",_kwnames
,&_argo0
,&_arg1
))  
 545         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 546         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) { 
 547             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_read. Expected _wxPyInputStream_p."); 
 552         _result 
= (wxString 
*)wxInputStream_read(_arg0
,_arg1
); 
 556         _resultobj 
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len()); 
 565 #define wxInputStream_readline(_swigobj,_swigarg0)  (_swigobj->readline(_swigarg0)) 
 566 static PyObject 
*_wrap_wxInputStream_readline(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 567     PyObject 
* _resultobj
; 
 569     wxPyInputStream 
* _arg0
; 
 570     int  _arg1 
= (int ) -1; 
 571     PyObject 
* _argo0 
= 0; 
 572     char *_kwnames
[] = { "self","size", NULL 
}; 
 575     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_readline",_kwnames
,&_argo0
,&_arg1
))  
 578         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 579         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) { 
 580             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_readline. Expected _wxPyInputStream_p."); 
 585         _result 
= (wxString 
*)wxInputStream_readline(_arg0
,_arg1
); 
 589         _resultobj 
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len()); 
 598 #define wxInputStream_readlines(_swigobj,_swigarg0)  (_swigobj->readlines(_swigarg0)) 
 599 static PyObject 
*_wrap_wxInputStream_readlines(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 600     PyObject 
* _resultobj
; 
 601     wxStringPtrList 
* _result
; 
 602     wxPyInputStream 
* _arg0
; 
 603     int  _arg1 
= (int ) -1; 
 604     PyObject 
* _argo0 
= 0; 
 605     char *_kwnames
[] = { "self","sizehint", NULL 
}; 
 608     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_readlines",_kwnames
,&_argo0
,&_arg1
))  
 611         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 612         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) { 
 613             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_readlines. Expected _wxPyInputStream_p."); 
 618         _result 
= (wxStringPtrList 
*)wxInputStream_readlines(_arg0
,_arg1
); 
 622         _resultobj 
= PyList_New(_result
->GetCount()); 
 623         wxStringPtrList::Node 
*node 
= _result
->GetFirst(); 
 624         for (int i
=0; node
; i
++) { 
 625             wxString 
*s 
= node
->GetData(); 
 626             PyList_SetItem(_resultobj
, i
, PyString_FromStringAndSize(s
->c_str(), s
->Len())); 
 627             node 
= node
->GetNext(); 
 638 #define wxInputStream_seek(_swigobj,_swigarg0,_swigarg1)  (_swigobj->seek(_swigarg0,_swigarg1)) 
 639 static PyObject 
*_wrap_wxInputStream_seek(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 640     PyObject 
* _resultobj
; 
 641     wxPyInputStream 
* _arg0
; 
 643     int  _arg2 
= (int ) 0; 
 644     PyObject 
* _argo0 
= 0; 
 645     char *_kwnames
[] = { "self","offset","whence", NULL 
}; 
 648     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|i:wxInputStream_seek",_kwnames
,&_argo0
,&_arg1
,&_arg2
))  
 651         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 652         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) { 
 653             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_seek. Expected _wxPyInputStream_p."); 
 658         wxInputStream_seek(_arg0
,_arg1
,_arg2
); 
 660 }    Py_INCREF(Py_None
); 
 661     _resultobj 
= Py_None
; 
 665 #define wxInputStream_tell(_swigobj)  (_swigobj->tell()) 
 666 static PyObject 
*_wrap_wxInputStream_tell(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 667     PyObject 
* _resultobj
; 
 669     wxPyInputStream 
* _arg0
; 
 670     PyObject 
* _argo0 
= 0; 
 671     char *_kwnames
[] = { "self", NULL 
}; 
 674     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_tell",_kwnames
,&_argo0
))  
 677         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 678         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) { 
 679             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_tell. Expected _wxPyInputStream_p."); 
 684         _result 
= (int )wxInputStream_tell(_arg0
); 
 686 }    _resultobj 
= Py_BuildValue("i",_result
); 
 690 static void  wxOutputStream_write(wxOutputStream 
*self
,const wxString 
& str
) { 
 691             self
->Write(str
.c_str(), str
.Length()); 
 693 static PyObject 
*_wrap_wxOutputStream_write(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 694     PyObject 
* _resultobj
; 
 695     wxOutputStream 
* _arg0
; 
 697     PyObject 
* _argo0 
= 0; 
 698     PyObject 
* _obj1 
= 0; 
 699     char *_kwnames
[] = { "self","str", NULL 
}; 
 702     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxOutputStream_write",_kwnames
,&_argo0
,&_obj1
))  
 705         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 706         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxOutputStream_p")) { 
 707             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxOutputStream_write. Expected _wxOutputStream_p."); 
 712 #if PYTHON_API_VERSION >= 1009 
 713     char* tmpPtr
; int tmpSize
; 
 714     if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) { 
 715         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 718     if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1) 
 720     _arg1 
= new wxString(tmpPtr
, tmpSize
); 
 722     if (!PyString_Check(_obj1
)) { 
 723         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 726     _arg1 
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
)); 
 730         wxOutputStream_write(_arg0
,*_arg1
); 
 732 }    Py_INCREF(Py_None
); 
 733     _resultobj 
= Py_None
; 
 741 static PyMethodDef streamscMethods
[] = { 
 742          { "wxOutputStream_write", (PyCFunction
) _wrap_wxOutputStream_write
, METH_VARARGS 
| METH_KEYWORDS 
}, 
 743          { "wxInputStream_tell", (PyCFunction
) _wrap_wxInputStream_tell
, METH_VARARGS 
| METH_KEYWORDS 
}, 
 744          { "wxInputStream_seek", (PyCFunction
) _wrap_wxInputStream_seek
, METH_VARARGS 
| METH_KEYWORDS 
}, 
 745          { "wxInputStream_readlines", (PyCFunction
) _wrap_wxInputStream_readlines
, METH_VARARGS 
| METH_KEYWORDS 
}, 
 746          { "wxInputStream_readline", (PyCFunction
) _wrap_wxInputStream_readline
, METH_VARARGS 
| METH_KEYWORDS 
}, 
 747          { "wxInputStream_read", (PyCFunction
) _wrap_wxInputStream_read
, METH_VARARGS 
| METH_KEYWORDS 
}, 
 748          { "wxInputStream_eof", (PyCFunction
) _wrap_wxInputStream_eof
, METH_VARARGS 
| METH_KEYWORDS 
}, 
 749          { "wxInputStream_flush", (PyCFunction
) _wrap_wxInputStream_flush
, METH_VARARGS 
| METH_KEYWORDS 
}, 
 750          { "wxInputStream_close", (PyCFunction
) _wrap_wxInputStream_close
, METH_VARARGS 
| METH_KEYWORDS 
}, 
 751          { "new_wxInputStream", (PyCFunction
) _wrap_new_wxInputStream
, METH_VARARGS 
| METH_KEYWORDS 
}, 
 758  * This table is used by the pointer type-checker 
 760 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = { 
 761     { "_signed_long","_long",0}, 
 762     { "_wxPrintQuality","_wxCoord",0}, 
 763     { "_wxPrintQuality","_int",0}, 
 764     { "_wxPrintQuality","_signed_int",0}, 
 765     { "_wxPrintQuality","_unsigned_int",0}, 
 766     { "_wxPrintQuality","_wxWindowID",0}, 
 767     { "_wxPrintQuality","_uint",0}, 
 768     { "_wxPrintQuality","_EBool",0}, 
 769     { "_wxPrintQuality","_size_t",0}, 
 770     { "_wxPrintQuality","_time_t",0}, 
 771     { "_byte","_unsigned_char",0}, 
 772     { "_long","_unsigned_long",0}, 
 773     { "_long","_signed_long",0}, 
 774     { "_size_t","_wxCoord",0}, 
 775     { "_size_t","_wxPrintQuality",0}, 
 776     { "_size_t","_time_t",0}, 
 777     { "_size_t","_unsigned_int",0}, 
 778     { "_size_t","_int",0}, 
 779     { "_size_t","_wxWindowID",0}, 
 780     { "_size_t","_uint",0}, 
 781     { "_uint","_wxCoord",0}, 
 782     { "_uint","_wxPrintQuality",0}, 
 783     { "_uint","_time_t",0}, 
 784     { "_uint","_size_t",0}, 
 785     { "_uint","_unsigned_int",0}, 
 787     { "_uint","_wxWindowID",0}, 
 788     { "_wxChar","_char",0}, 
 789     { "_char","_wxChar",0}, 
 790     { "_EBool","_wxCoord",0}, 
 791     { "_EBool","_wxPrintQuality",0}, 
 792     { "_EBool","_signed_int",0}, 
 793     { "_EBool","_int",0}, 
 794     { "_EBool","_wxWindowID",0}, 
 795     { "_unsigned_long","_long",0}, 
 796     { "_wxPyInputStream","_class_wxPyInputStream",0}, 
 797     { "_class_wxOutputStream","_wxOutputStream",0}, 
 798     { "_signed_int","_wxCoord",0}, 
 799     { "_signed_int","_wxPrintQuality",0}, 
 800     { "_signed_int","_EBool",0}, 
 801     { "_signed_int","_wxWindowID",0}, 
 802     { "_signed_int","_int",0}, 
 803     { "_WXTYPE","_short",0}, 
 804     { "_WXTYPE","_signed_short",0}, 
 805     { "_WXTYPE","_unsigned_short",0}, 
 806     { "_unsigned_short","_WXTYPE",0}, 
 807     { "_unsigned_short","_short",0}, 
 808     { "_class_wxPyInputStream","_wxPyInputStream",0}, 
 809     { "_signed_short","_WXTYPE",0}, 
 810     { "_signed_short","_short",0}, 
 811     { "_unsigned_char","_byte",0}, 
 812     { "_unsigned_int","_wxCoord",0}, 
 813     { "_unsigned_int","_wxPrintQuality",0}, 
 814     { "_unsigned_int","_time_t",0}, 
 815     { "_unsigned_int","_size_t",0}, 
 816     { "_unsigned_int","_uint",0}, 
 817     { "_unsigned_int","_wxWindowID",0}, 
 818     { "_unsigned_int","_int",0}, 
 819     { "_short","_WXTYPE",0}, 
 820     { "_short","_unsigned_short",0}, 
 821     { "_short","_signed_short",0}, 
 822     { "_wxWindowID","_wxCoord",0}, 
 823     { "_wxWindowID","_wxPrintQuality",0}, 
 824     { "_wxWindowID","_time_t",0}, 
 825     { "_wxWindowID","_size_t",0}, 
 826     { "_wxWindowID","_EBool",0}, 
 827     { "_wxWindowID","_uint",0}, 
 828     { "_wxWindowID","_int",0}, 
 829     { "_wxWindowID","_signed_int",0}, 
 830     { "_wxWindowID","_unsigned_int",0}, 
 831     { "_int","_wxCoord",0}, 
 832     { "_int","_wxPrintQuality",0}, 
 833     { "_int","_time_t",0}, 
 834     { "_int","_size_t",0}, 
 835     { "_int","_EBool",0}, 
 837     { "_int","_wxWindowID",0}, 
 838     { "_int","_unsigned_int",0}, 
 839     { "_int","_signed_int",0}, 
 840     { "_time_t","_wxCoord",0}, 
 841     { "_time_t","_wxPrintQuality",0}, 
 842     { "_time_t","_unsigned_int",0}, 
 843     { "_time_t","_int",0}, 
 844     { "_time_t","_wxWindowID",0}, 
 845     { "_time_t","_uint",0}, 
 846     { "_time_t","_size_t",0}, 
 847     { "_wxCoord","_int",0}, 
 848     { "_wxCoord","_signed_int",0}, 
 849     { "_wxCoord","_unsigned_int",0}, 
 850     { "_wxCoord","_wxWindowID",0}, 
 851     { "_wxCoord","_uint",0}, 
 852     { "_wxCoord","_EBool",0}, 
 853     { "_wxCoord","_size_t",0}, 
 854     { "_wxCoord","_time_t",0}, 
 855     { "_wxCoord","_wxPrintQuality",0}, 
 856     { "_wxOutputStream","_class_wxOutputStream",0}, 
 859 static PyObject 
*SWIG_globals
; 
 863 SWIGEXPORT(void) initstreamsc() { 
 865          SWIG_globals 
= SWIG_newvarlink(); 
 866          m 
= Py_InitModule("streamsc", streamscMethods
); 
 867          d 
= PyModule_GetDict(m
); 
 870    for (i 
= 0; _swig_mapping
[i
].n1
; i
++) 
 871         SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);