Commit 5c069fd4 authored by Guido van Rossum's avatar Guido van Rossum

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

name for clear()). This fixes the name clash with curses.
(Jack)
parent 239a218b
...@@ -886,6 +886,18 @@ gl_gversion(self, args) ...@@ -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 */ /* End of manually written stubs */
%% %%
...@@ -898,7 +910,6 @@ void rects short s short s short s short s ...@@ -898,7 +910,6 @@ void rects short s short s short s short s
void rmv2i long s long s void rmv2i long s long s
void noport void noport
void popviewport void popviewport
void clear
void clearhitcode void clearhitcode
void closeobj void closeobj
void cursoff void cursoff
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment