Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1186)

Unified Diff: readline/terminal.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « readline/readline.c ('k') | readline/util.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: readline/terminal.c
diff --git a/readline/terminal.c b/readline/terminal.c
index 255b5e69ca1ee7abb02a7555f0806f726379f184..8094186bba21a91ed02b962988b90769cb323312 100644
--- a/readline/terminal.c
+++ b/readline/terminal.c
@@ -81,11 +81,6 @@ static void _win_get_screensize PARAMS((int *, int *));
static void _emx_get_screensize PARAMS((int *, int *));
#endif
-#if defined (__MINGW32__)
-# include <windows.h>
-# include <wincon.h>
-#endif
-
#define CUSTOM_REDISPLAY_FUNC() (rl_redisplay_function != rl_redisplay)
#define CUSTOM_INPUT_FUNC() (rl_getc_function != rl_getc)
@@ -250,20 +245,6 @@ _rl_get_screen_size (tty, ignore_env)
}
#endif /* TIOCGWINSZ */
- /* For MinGW, we get the console size from the Windows API. */
-#if defined (__MINGW32__)
- HANDLE hConOut = GetStdHandle (STD_OUTPUT_HANDLE);
- if (hConOut != INVALID_HANDLE_VALUE)
- {
- CONSOLE_SCREEN_BUFFER_INFO scr;
- if (GetConsoleScreenBufferInfo (hConOut, &scr))
- {
- wc = scr.dwSize.X;
- wr = scr.srWindow.Bottom - scr.srWindow.Top + 1;
- }
- }
-#endif
-
#if defined (__EMX__)
_emx_get_screensize (&wc, &wr);
#elif defined (__MINGW32__)
« no previous file with comments | « readline/readline.c ('k') | readline/util.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698