[Python-checkins] CVS: python/dist/src/Modules _curses_panel.c,1.3,1.4

A.M. Kuchling akuchling@users.sourceforge.net
Fri, 19 Jan 2001 07:35:29 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv30548

Modified Files:
	_curses_panel.c 
Log Message:
Minor patch from Thomas Gellekum: 
   * Deletes the Panel_NoArgReturnStringFunction() macro, which isn't used 
     anymore
   * Adjusts two comments.


Index: _curses_panel.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_curses_panel.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** _curses_panel.c	2000/12/23 05:46:23	1.3
--- _curses_panel.c	2001/01/19 15:35:26	1.4
***************
*** 146,154 ****
    return PyCursesCheckERR(X(self->pan), # X); }
  
- #define Panel_NoArgReturnStringFunction(X) \
- static PyObject *PyCursesPanel_##X(PyCursesPanelObject *self, PyObject *args) \
- { if (!PyArg_NoArgs(args)) return NULL; \
-   return PyString_FromString(X(self->pan)); }
- 
  #define Panel_NoArgTrueFalseFunction(X) \
  static PyObject *PyCursesPanel_##X(PyCursesPanelObject *self, PyObject *args) \
--- 146,149 ----
***************
*** 230,234 ****
  
  /* panel_below(NULL) returns the top panel in the stack. To get
!    this behaviour we use curses.panel_below(). */
  static PyObject *
  PyCursesPanel_below(PyCursesPanelObject *self, PyObject *args)
--- 225,229 ----
  
  /* panel_below(NULL) returns the top panel in the stack. To get
!    this behaviour we use curses.panel.top_panel(). */
  static PyObject *
  PyCursesPanel_below(PyCursesPanelObject *self, PyObject *args)
***************
*** 390,395 ****
      pan = panel_above(NULL);
  
!     if (pan == NULL) {		/* valid output, it means there's no panel at
!                                    all */  
  	Py_INCREF(Py_None);
  	return Py_None;
--- 385,390 ----
      pan = panel_above(NULL);
  
!     if (pan == NULL) {		/* valid output, it means
! 				   there's no panel at all */  
  	Py_INCREF(Py_None);
  	return Py_None;