From d9e12f1a3267a834a31bc516632655e1f016fb77 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 20 Dec 2003 21:28:12 +0000 Subject: [PATCH] Clean out the old stuff git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/my_typemaps.i | 86 -------------------------------------- 1 file changed, 86 deletions(-) diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index 07ca2e32dc..c538e130ae 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -35,8 +35,6 @@ } - - //--------------------------------------------------------------------------- // wxString typemaps @@ -98,34 +96,6 @@ -// //--------------------------------------------------------------------------- - - -// %typemap(python, in) wxMemoryBuffer& { -// if (!PyString_Check($source)) { -// PyErr_SetString(PyExc_TypeError, "String buffer expected"); -// return NULL; -// } -// char* str = PyString_AS_STRING($source); -// int len = PyString_GET_SIZE($source); -// $target = new wxMemoryBuffer(len); -// memcpy($target->GetData(), str, len); -// } - -// %typemap(python, freearg) wxMemoryBuffer& { -// if ($target) -// delete $source; -// } - -// %typemap(python, out) wxMemoryBuffer { -// $target = PyString_FromStringAndSize((char*)$source->GetData(), $source->GetDataLen()); -// } - -// %typemap(python, ret) wxMemoryBuffer { -// delete $source; -// } - - //--------------------------------------------------------------------------- // Typemaps to convert Python sequence objects (tuples, etc.) to // wxSize, wxPoint, wxRealPoint, and wxRect. @@ -275,62 +245,6 @@ } -// //--------------------------------------------------------------------------- -// // Map T_OUTPUTs for floats to return ints. - - -// %typemap(python,ignore) float *T_OUTPUT_TOINT(float temp), -// double *T_OUTPUT_TOINT(double temp) -// { -// $target = &temp; -// } - - -// %typemap(python,argout) float *T_OUTPUT_TOINT, -// double *T_OUTPUT_TOINT -// { -// PyObject *o; -// o = PyInt_FromLong((long) (*$source)); -// $target = t_output_helper($target, o); -// } - - -// %typemap(python,ignore) bool *T_OUTPUT(int temp) -// { -// $target = (bool*)&temp; -// } - -// %typemap(python,argout) bool *T_OUTPUT -// { -// PyObject *o; -// o = PyInt_FromLong((long) (*$source)); -// $target = t_output_helper($target, o); -// } - -// %typemap(python,ignore) bool *OUTPUT = bool *T_OUTPUT; -// %typemap(python,argout) bool *OUTPUT = bool *T_OUTPUT; - - - -// %typemap(python,ignore) byte *T_OUTPUT(int temp) -// { -// $target = (byte*)&temp; -// } - -// %typemap(python,argout) byte *T_OUTPUT -// { -// PyObject *o; -// o = PyInt_FromLong((long) (*$source)); -// $target = t_output_helper($target, o); -// } - -// %typemap(python,ignore) byte *OUTPUT = byte *T_OUTPUT; -// %typemap(python,argout) byte *OUTPUT = byte *T_OUTPUT; - - -// %typemap(python,ignore) wxCoord *OUTPUT = int *OUTPUT; -// %typemap(python,argout) wxCoord *OUTPUT = int *OUTPUT; - //--------------------------------------------------------------------------- // Typemaps to convert return values that are base class pointers -- 2.45.2