mirror of
https://github.com/python/cpython.git
synced 2025-10-16 19:57:59 +00:00
Minor patch from Thomas Gellekum:
* Deletes the Panel_NoArgReturnStringFunction() macro, which isn't used anymore * Adjusts two comments.
This commit is contained in:
parent
95f1e6f631
commit
ae89af9c63
1 changed files with 3 additions and 8 deletions
|
@ -145,11 +145,6 @@ static PyObject *PyCursesPanel_##X(PyCursesPanelObject *self, PyObject *args) \
|
||||||
{ if (!PyArg_NoArgs(args)) return NULL; \
|
{ if (!PyArg_NoArgs(args)) return NULL; \
|
||||||
return PyCursesCheckERR(X(self->pan), # X); }
|
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) \
|
#define Panel_NoArgTrueFalseFunction(X) \
|
||||||
static PyObject *PyCursesPanel_##X(PyCursesPanelObject *self, PyObject *args) \
|
static PyObject *PyCursesPanel_##X(PyCursesPanelObject *self, PyObject *args) \
|
||||||
{ \
|
{ \
|
||||||
|
@ -229,7 +224,7 @@ PyCursesPanel_above(PyCursesPanelObject *self, PyObject *args)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* panel_below(NULL) returns the top panel in the stack. To get
|
/* panel_below(NULL) returns the top panel in the stack. To get
|
||||||
this behaviour we use curses.panel_below(). */
|
this behaviour we use curses.panel.top_panel(). */
|
||||||
static PyObject *
|
static PyObject *
|
||||||
PyCursesPanel_below(PyCursesPanelObject *self, PyObject *args)
|
PyCursesPanel_below(PyCursesPanelObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
|
@ -389,8 +384,8 @@ PyCurses_bottom_panel(PyObject *self, PyObject *args)
|
||||||
|
|
||||||
pan = panel_above(NULL);
|
pan = panel_above(NULL);
|
||||||
|
|
||||||
if (pan == NULL) { /* valid output, it means there's no panel at
|
if (pan == NULL) { /* valid output, it means
|
||||||
all */
|
there's no panel at all */
|
||||||
Py_INCREF(Py_None);
|
Py_INCREF(Py_None);
|
||||||
return Py_None;
|
return Py_None;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue