summaryrefslogtreecommitdiffstats
path: root/Modules/cstubs
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-28 16:09:16 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-28 16:09:16 (GMT)
commit5c069fd4b18f0a44e22b995d3bb3be9f4b5572e1 (patch)
tree79d2985bd34fa77e45a89fff180f77b7ff1e08e0 /Modules/cstubs
parent239a218baccafc2a27ed21beaecd42bcab70c5fd (diff)
downloadcpython-5c069fd4b18f0a44e22b995d3bb3be9f4b5572e1.zip
cpython-5c069fd4b18f0a44e22b995d3bb3be9f4b5572e1.tar.gz
cpython-5c069fd4b18f0a44e22b995d3bb3be9f4b5572e1.tar.bz2
Generate the clear() method manually (calling __GLclear(), another
name for clear()). This fixes the name clash with curses. (Jack)
Diffstat (limited to 'Modules/cstubs')
-rw-r--r--Modules/cstubs13
1 files changed, 12 insertions, 1 deletions
diff --git a/Modules/cstubs b/Modules/cstubs
index 1a237c1..bd2af58 100644
--- a/Modules/cstubs
+++ b/Modules/cstubs
@@ -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