From 932f0adaff7108ad797016cd9f2c7ccc0f8945e8 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Tue, 1 Aug 2006 03:16:17 +0000 Subject: [PATCH] Moved _getch_win_ from initscr.c to getch.c. For now, however, it's not static, because it's also referenced in */pdckbd.c. --- pdcurses/getch.c | 4 +++- pdcurses/initscr.c | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pdcurses/getch.c b/pdcurses/getch.c index 1cfd97ea..e8b93c4b 100644 --- a/pdcurses/getch.c +++ b/pdcurses/getch.c @@ -33,7 +33,7 @@ # undef wmove #endif -RCSID("$Id: getch.c,v 1.31 2006/07/31 23:07:41 wmcbrine Exp $"); +RCSID("$Id: getch.c,v 1.32 2006/08/01 03:16:17 wmcbrine Exp $"); /*man-start************************************************************** @@ -104,6 +104,8 @@ RCSID("$Id: getch.c,v 1.31 2006/07/31 23:07:41 wmcbrine Exp $"); #define getch PDC_getch #define ungetch PDC_ungetch +WINDOW *_getch_win_ = NULL; + /*man-start************************************************************** PDC_breakout() - check for type-ahead diff --git a/pdcurses/initscr.c b/pdcurses/initscr.c index d3319873..f3282d1c 100644 --- a/pdcurses/initscr.c +++ b/pdcurses/initscr.c @@ -38,7 +38,7 @@ # undef wnoutrefresh #endif -RCSID("$Id: initscr.c,v 1.64 2006/07/30 19:18:00 wmcbrine Exp $"); +RCSID("$Id: initscr.c,v 1.65 2006/08/01 03:16:17 wmcbrine Exp $"); const char *_curses_notice = "PDCurses 3.0 - Public Domain 2006"; @@ -60,8 +60,6 @@ int c_gindex = 1; /* getter index */ int c_ungind = 0; /* wungetch() push index */ int c_ungch[NUNGETCH]; /* array of ungotten chars */ -WINDOW *_getch_win_ = NULL; - /* Global definitions for setmode routines */ struct cttyset c_sh_tty = {0}; /* tty modes for def_shell_mode */