mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Generate the clear() method manually (calling __GLclear(), another
name for clear()). This fixes the name clash with curses. (Jack)
This commit is contained in:
parent
239a218bac
commit
5c069fd4b1
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue