]> granicus.if.org Git - python/commitdiff
Generate the clear() method manually (calling __GLclear(), another
authorGuido van Rossum <guido@python.org>
Tue, 28 Apr 1998 16:09:16 +0000 (16:09 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 28 Apr 1998 16:09:16 +0000 (16:09 +0000)
name for clear()). This fixes the name clash with curses.
(Jack)

Modules/cstubs

index 1a237c1b36c15b3cb1f193dc31ec377c0fcb0af9..bd2af589e04682d497619c9b19615e4bc028fa82 100644 (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