[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev lynx under CYGWIN [patch]
From: |
Doug Kaufman |
Subject: |
lynx-dev lynx under CYGWIN [patch] |
Date: |
Mon, 23 Aug 1999 08:43:19 -0700 (PDT) |
I decided to play with the CYGWIN comiler on a Win98 machine. I was
able to get a working binary with the following patch, compiling
with SLang. I haven't tried PDCurses yet, so the keymap patch is
tentative as regards PDCurses. I used the configure script under bash
to generate makefiles and lynx_cfg.h, although cygwin ran out of
processes and required multiple runs with modified configure scripts
(ulimit -u was only 63). The SLang changes that I made ifdef UNIX are
ifdef REAL_UNIX_SYSTEM in slang.h.
Has anyone else been using CYGWIN?
Doug
--- LYCurses.c Fri Jul 30 15:39:54 1999
+++ LYCurses.c.new Mon Aug 23 08:20:12 1999
@@ -160,7 +160,7 @@
SLang_init_tty(3, 0, 1);
#endif /* SLANG_VERSION > 9929 */
signal(SIGTSTP, sl_suspend);
-#if !defined(_WINDOWS) && !defined(__DJGPP__)
+#ifdef UNIX
SLtty_set_suspend_state(1);
#endif
if (sig == SIGTSTP)
@@ -680,7 +680,7 @@
#if !defined(USE_KEYMAPS)
SLtt_get_terminfo();
#endif
-#if defined(__DJGPP__) && !defined(DJGPP_KEYHANDLER)
+#if (defined(__DJGPP__) && !defined(DJGPP_KEYHANDLER)) || defined(__CYGWIN__)
SLkp_init ();
#endif /* __DJGPP__ && !DJGPP_KEYHANDLER */
@@ -762,9 +762,9 @@
scrollok(0,0);
SLsmg_Backspace_Moves = 1;
#ifndef VMS
-#if !defined(_WINDOWS) && !defined(__DJGPP__)
+#ifdef UNIX
SLtty_set_suspend_state(1);
-#endif /* !_WINDOWS */
+#endif /* UNIX */
#ifdef SIGTSTP
if (!no_suspend)
signal(SIGTSTP, sl_suspend);
--- LYCurses.h Fri Jul 30 15:39:54 1999
+++ LYCurses.h.new Sun Aug 22 22:34:34 1999
@@ -199,7 +199,7 @@
#define USE_SLANG_MOUSE 1
#endif
-#if !defined(__DJGPP__)
+#if !defined(__DJGPP__) && !defined(__CYGWIN__)
#define USE_KEYMAPS 1
#endif
--- LYKeymap.c Sat Aug 21 23:07:26 1999
+++ LYKeymap.c.new Sat Aug 21 23:10:42 1999
@@ -187,7 +187,7 @@
LYK_NOCACHE, 0, LYK_INTERRUPT, 0,
/* x */ /* y */ /* z */ /* { */
-#if (defined(_WINDOWS) || defined(__DJGPP__))
+#if (defined(_WINDOWS) || defined(__DJGPP__) || defined(__CYGWIN__))
LYK_PIPE, 0, 0, 0,
/* | */ /* } */ /* ~ */
@@ -197,7 +197,7 @@
LYK_PIPE, 0, 0, LYK_HISTORY,
/* | */ /* } */ /* ~ */ /* del */
-#endif /* _WINDOWS || __DJGPP__ */
+#endif /* _WINDOWS || __DJGPP__ || __CYGWIN__ */
/* 80..9F (illegal ISO-8859-1) 8-bit characters. */
0, 0, 0, 0,
@@ -242,7 +242,7 @@
LYK_NEXT_PAGE, LYK_PREV_PAGE, LYK_HOME, LYK_END,
/* PGDOWN */ /* PGUP */ /* HOME */ /* END */
-#if (defined(_WINDOWS) || defined(__DJGPP__))
+#if (defined(_WINDOWS) || defined(__DJGPP__) || defined(__CYGWIN__))
LYK_HELP, 0, 0, 0,
/* F1*/
@@ -251,19 +251,19 @@
LYK_HELP, LYK_ACTIVATE, LYK_HOME, LYK_END,
/* F1*/ /* Do key */ /* Find key */ /* Select key */
-#endif /* _WINDOWS || __DJGPP__ */
+#endif /* _WINDOWS || __DJGPP__ || __CYGWIN__ */
LYK_UP_TWO, LYK_DOWN_TWO, LYK_DO_NOTHING, LYK_FASTBACKW_LINK,
/* Insert key */ /* Remove key */ /* DO_NOTHING*/ /* Back tab */
/* 110..18F */
-#if (defined(_WINDOWS) || defined(__DJGPP__)) && defined(USE_SLANG) &&
!defined(DJGPP_KEYHANDLER)
+#if (defined(_WINDOWS) || defined(__DJGPP__) || defined(__CYGWIN__)) &&
defined(USE_SLANG) && !defined(DJGPP_KEYHANDLER)
LYK_HISTORY, LYK_ACTIVATE, 0, 0,
/* Backspace */ /* Enter */
#else
0, 0, 0, 0,
-#endif /* USE_SLANG &&(_WINDOWS || __DJGPP) && !DJGPP_KEYHANDLER */
+#endif /* USE_SLANG &&(_WINDOWS || __DJGPP || __CYGWIN__) && !DJGPP_KEYHANDLER
*/
0, 0, 0, 0,
0, LYK_DO_NOTHING, 0, 0,
/* 0x11d: MOUSE_KEY */
@@ -313,7 +313,7 @@
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
-#if (defined(_WINDOWS) || defined(__DJGPP__)) && !defined(USE_SLANG) /*
PDCurses */
+#if (defined(_WINDOWS) || defined(__DJGPP__) || defined(__CYGWIN__)) &&
!defined(USE_SLANG) /* PDCurses */
LYK_ABORT, 0, 0, 0,
/* ALT_X */
0, 0, 0, 0,
@@ -333,7 +333,7 @@
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
-#endif /* (_WINDOWS || __DJGPP__) && !USE_SLANG */
+#endif /* (_WINDOWS || __DJGPP__ || __CYGWIN__) && !USE_SLANG */
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
--- LYStrings.c Sun Aug 22 16:19:16 1999
+++ LYStrings.c.new Sun Aug 22 22:50:46 1999
@@ -562,7 +562,11 @@
#define GetChar SLkp_getkey
#endif /* DJGPP_KEYHANDLER */
#else
+#ifdef __CYGWIN__
+#define GetChar SLkp_getkey
+#else
#define GetChar (int)SLang_getkey
+#endif /* __CYGWIN__ */
#endif /* __DJGPP__ */
#endif /* VMS */
#endif /* USE_SLANG */
@@ -2070,7 +2074,7 @@
}
}
#endif /* DGJPP_KEYHANDLER */
-#if defined(USE_SLANG) && defined(__DJGPP__) && !defined(DJGPP_KEYHANDLER) &&
!defined(USE_KEYMAPS)
+#if defined(USE_SLANG) && (defined(__DJGPP__) || defined(__CYGWIN__)) &&
!defined(DJGPP_KEYHANDLER) && !defined(USE_KEYMAPS)
else {
switch(c) {
case SL_KEY_DOWN: /* The four arrow keys ... */
--- LYUtils.c Fri Aug 13 13:27:26 1999
+++ LYUtils.c.new Mon Aug 23 08:09:32 1999
@@ -2097,7 +2097,7 @@
#ifdef USE_SLANG
if (!LYCursesON)
fd = fileno(stdin);
-#if SLANG_VERSION >= 9919
+#if ((SLANG_VERSION >= 9919) && defined(UNIX))
/* SLang_TT_Read_FD introduced in slang 0.99.19, from its changelog:
* SLang_TT_Read_FD variable is now available for unix. This is the file
* descriptor used by SLang_getkey. */
__
Doug Kaufman
Internet: address@hidden (preferred)
address@hidden
- lynx-dev lynx under CYGWIN [patch],
Doug Kaufman <=