Fixes so that wxPython builds on 2.7. Mostly removing references to all functions that require WXWIN_2_4_COMPATIBILITY to be defined.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -593,7 +593,7 @@ typedef struct swig_const_info {
|
||||
#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
|
||||
#define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
|
||||
#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
|
||||
|
||||
|
||||
|
||||
/* Python-specific SWIG API */
|
||||
#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
|
||||
@@ -654,7 +654,7 @@ PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SWIGRUNTIME PyObject *
|
||||
PySwigObject_repr(PySwigObject *v)
|
||||
{
|
||||
@@ -720,7 +720,7 @@ SWIGRUNTIME PyTypeObject*
|
||||
PySwigObject_GetType() {
|
||||
static char PySwigObject_Type__doc__[] =
|
||||
"Swig object carries a C/C++ instance pointer";
|
||||
|
||||
|
||||
static PyNumberMethods PySwigObject_as_number = {
|
||||
(binaryfunc)0, /*nb_add*/
|
||||
(binaryfunc)0, /*nb_subtract*/
|
||||
@@ -854,7 +854,7 @@ PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
|
||||
fputs(">", fp);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
SWIGRUNTIME PyObject *
|
||||
PySwigPacked_repr(PySwigPacked *v)
|
||||
{
|
||||
@@ -903,7 +903,7 @@ PySwigPacked_GetType() {
|
||||
static char PySwigPacked_Type__doc__[] =
|
||||
"Swig object carries a C/C++ instance pointer";
|
||||
static int type_init = 0;
|
||||
|
||||
|
||||
static PyTypeObject PySwigPacked_Type;
|
||||
if (!type_init) {
|
||||
PyTypeObject tmp = {
|
||||
@@ -950,8 +950,8 @@ PySwigPacked_GetType() {
|
||||
PySwigPacked_Type = tmp;
|
||||
type_init = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return &PySwigPacked_Type;
|
||||
}
|
||||
@@ -1110,7 +1110,7 @@ SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags)
|
||||
int newref = 0;
|
||||
PyObject *pyobj = 0;
|
||||
void *vptr;
|
||||
|
||||
|
||||
if (!obj) return 0;
|
||||
if (obj == Py_None) {
|
||||
*ptr = 0;
|
||||
@@ -1467,20 +1467,20 @@ static wxString CLSID_GetProgIDString(CLSID *self){
|
||||
return str;
|
||||
}
|
||||
|
||||
/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
|
||||
/*@C:\\SWIG-1.3.24\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
|
||||
#define SWIG_From_unsigned_SS_short PyInt_FromLong
|
||||
/*@@*/
|
||||
|
||||
static wxString wxParamX_vt_type_get(wxParamX *self){ return _VARTYPEname(self->vt); }
|
||||
|
||||
/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
|
||||
/*@C:\\SWIG-1.3.24\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
|
||||
#define SWIG_From_long PyInt_FromLong
|
||||
/*@@*/
|
||||
|
||||
static bool wxParamXArray___nonzero__(wxParamXArray *self){ return self->size() > 0; }
|
||||
static int wxParamXArray___len__(wxParamXArray *self){ return self->size(); }
|
||||
|
||||
/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
|
||||
/*@C:\\SWIG-1.3.24\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
|
||||
#define SWIG_From_int PyInt_FromLong
|
||||
/*@@*/
|
||||
|
||||
|
Reference in New Issue
Block a user