lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Patch for dev.18


From: Doug Kaufman
Subject: lynx-dev Patch for dev.18
Date: Sat, 11 Jul 1998 22:03:12 -0700 (PDT)

I built lynx2.8.1dev.18 with SLANG and the DJGPP_KEYHANDLER for DOS,
but it crashes on startup when reading lynx.cfg. The following patch
to LYReadCFG.c seems to fix it so it no longer dumps core (or the DOS
equivalent). I also appended the previously posted patch to dev.17 for
DOS in LYGetFile.c.
                              Doug


*** lynx2-8-1/src/LYGetFile.c   Thu Apr 23 05:35:22 1998
--- lynx2-8-1/src/LYGetFile.c.new       Sat Jul  4 23:58:16 1998
***************
*** 429,434 ****
--- 429,438 ----
                        /*
                         *  Run the command.
                         */
+ #ifdef __DJGPP__
+               __djgpp_set_ctrl_c(0);
+               _go32_want_ctrl_break(1);
+ #endif /* __DJGPP__ */
                        if (strstr(p,"//") == p+9)
                            system(p+11);
                        else
***************
*** 442,454 ****
--- 446,466 ----
  #endif /* !VMS */
                            printf("\n%s", RETURN_TO_LYNX);
                            fflush(stdout);
+ #ifdef DJGPP_KEYHANDLER
+                           getxkey();
+ #else
                            LYgetch();
+ #endif /* DJGPP_KEYHANDLER */
  #ifdef VMS
                            {
                              extern BOOLEAN HadVMSInterrupt;
                              HadVMSInterrupt = FALSE;
                            }
  #endif /* VMS */
+ #ifdef __DJGPP__
+               __djgpp_set_ctrl_c(1);
+               _go32_want_ctrl_break(0);
+ #endif /* __DJGPP__ */
                        }
                        start_curses();
                        LYAddVisitedLink(doc);
*** lynx2-8-1/src/LYReadCFG.c   Sat Jul 11 16:44:02 1998
--- lynx2-8-1/src/LYReadCFG.c.new       Sat Jul 11 21:33:54 1998
***************
*** 1111,1117 ****
            break;
  
        case CONF_ENV:
!           if (getenv (tbl->name) == 0) {
  #ifdef VMS
                Define_VMSLogical(tbl->name, value);
  #else
--- 1111,1117 ----
            break;
  
        case CONF_ENV:
!           if ((getenv (tbl->name) == 0) && (q->str_value != 0)) {
  #ifdef VMS
                Define_VMSLogical(tbl->name, value);
  #else

__
Doug Kaufman
Internet: address@hidden (preferred)
          address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]