commit 88759f07b140df32a366e2d6ec9a2d3e46fdf03b
parent 1609264beffe5c2b5a7786062c363d410ecc4059
Author: ukai <ukai>
Date: Tue, 25 Dec 2001 16:54:45 +0000
[#496613] LASTLINE in terms.c
Diffstat:
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,5 +1,12 @@
2001-12-26 Fumitoshi UKAI <ukai@debian.or.jp>
+ * [#496613] LASTLINE in terms.c
+ by Kazuhiro NISHIYAMA (znz)
+ * terms.c (LASTLINE): defined(__CYGWIN__) instead of defined(CYGWIN)
+ * terms.c (setlinescols): ditto
+
+2001-12-26 Fumitoshi UKAI <ukai@debian.or.jp>
+
* [#496610] #include <sys/wait.h>
by Kazuhiro NISHIYAMA (znz)
* main.c: #if defined(HAVE_WAITPID) || defined(HAVE_WAIT3)
diff --git a/terms.c b/terms.c
@@ -435,9 +435,9 @@ char *T_cd, *T_ce, *T_kr, *T_kl, *T_cr, *T_bt, *T_ta, *T_sc, *T_rc,
*T_ti, *T_te, *T_nd, *T_as, *T_ae, *T_eA, *T_ac, *T_op;
int LINES, COLS;
-#if defined(CYGWIN) && LANG == JA
+#if defined(__CYGWIN__) && LANG == JA
int LASTLINE;
-#endif /* defined(CYGWIN) && LANG == JA */
+#endif /* defined(__CYGWIN__) && LANG == JA */
static int max_LINES = 0, max_COLS = 0;
static int tab_step = 8;
static int CurLine, CurColumn;
@@ -794,9 +794,9 @@ setlinescols(void)
COLS = MAX_COLUMN;
if (LINES > MAX_LINE)
LINES = MAX_LINE;
-#if defined(CYGWIN) && LANG == JA
+#if defined(__CYGWIN__) && LANG == JA
LASTLINE = LINES - (isWinConsole ? 2 : 1);
-#endif /* defined(CYGWIN) && LANG == JA */
+#endif /* defined(__CYGWIN__) && LANG == JA */
}
void