Skip to content

Commit b7337a7

Browse files
committed
use an anonymous structure
1 parent 52396b2 commit b7337a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/_cursesmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ typedef chtype attr_t; /* No attr_t type is available */
160160
#define _CURSES_PAIR_CONTENT_FUNC pair_content
161161
#endif /* _NCURSES_EXTENDED_COLOR_FUNCS */
162162

163-
typedef struct _cursesmodule_state {
164-
PyObject *error; // PyCursesError
165-
PyTypeObject *window_type; // PyCursesWindow_Type
163+
typedef struct {
164+
PyObject *error; // curses exception type
165+
PyTypeObject *window_type; // exposed by PyCursesWindow_Type
166166
} cursesmodule_state;
167167

168168
static inline cursesmodule_state *

0 commit comments

Comments
 (0)