Added patch to wxPoint_LIST_helper from Tim Hochberg that should make

it gobs faster in certain situations.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-04-02 07:07:22 +00:00
parent 1da1216c9f
commit e0672e2fc3
31 changed files with 510 additions and 338 deletions

View File

@@ -5379,6 +5379,7 @@ static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *
long _arg3 = (long ) 0;
long _arg4 = (long ) 0;
PyObject * _argo0 = 0;
int NPOINTS;
PyObject * _obj2 = 0;
char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
@@ -5394,18 +5395,13 @@ static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *
}
if (_obj2)
{
_arg2 = wxPoint_LIST_helper(_obj2);
if (_arg2 == NULL) {
return NULL;
}
_arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
if (_arg2 == NULL) {
return NULL;
}
}
{
if (_obj2) {
_arg1 = PyList_Size(_obj2);
}
else {
_arg1 = 0;
}
_arg1 = NPOINTS;
}
{
wxPy_BEGIN_ALLOW_THREADS;
@@ -5430,6 +5426,7 @@ static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject
long _arg4 = (long ) 0;
int _arg5 = (int ) wxODDEVEN_RULE;
PyObject * _argo0 = 0;
int NPOINTS;
PyObject * _obj2 = 0;
char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
@@ -5445,18 +5442,13 @@ static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject
}
if (_obj2)
{
_arg2 = wxPoint_LIST_helper(_obj2);
if (_arg2 == NULL) {
return NULL;
}
_arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
if (_arg2 == NULL) {
return NULL;
}
}
{
if (_obj2) {
_arg1 = PyList_Size(_obj2);
}
else {
_arg1 = 0;
}
_arg1 = NPOINTS;
}
{
wxPy_BEGIN_ALLOW_THREADS;
@@ -5624,6 +5616,7 @@ static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject
int _arg1;
wxPoint * _arg2;
PyObject * _argo0 = 0;
int NPOINTS;
PyObject * _obj2 = 0;
char *_kwnames[] = { "self","points", NULL };
@@ -5639,18 +5632,13 @@ static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject
}
if (_obj2)
{
_arg2 = wxPoint_LIST_helper(_obj2);
if (_arg2 == NULL) {
return NULL;
}
_arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
if (_arg2 == NULL) {
return NULL;
}
}
{
if (_obj2) {
_arg1 = PyList_Size(_obj2);
}
else {
_arg1 = 0;
}
_arg1 = NPOINTS;
}
{
wxPy_BEGIN_ALLOW_THREADS;