Generate the clear() method manually (calling __GLclear(), another

name for clear()). This fixes the name clash with curses.
(Jack)
This commit is contained in:
Guido van Rossum 1998-04-28 16:09:16 +00:00
parent 239a218bac
commit 5c069fd4b1

View file

@ -886,6 +886,18 @@ gl_gversion(self, args)
}
/* void clear - Manual because of clash with termcap */
%clear
static PyObject *
gl_clear(self, args)
PyObject *self;
PyObject *args;
{
__GLclear( );
Py_INCREF(Py_None);
return Py_None;
}
/* End of manually written stubs */
%%
@ -898,7 +910,6 @@ void rects short s short s short s short s
void rmv2i long s long s
void noport
void popviewport
void clear
void clearhitcode
void closeobj
void cursoff