lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev DOS patch


From: Doug Kaufman
Subject: lynx-dev DOS patch
Date: Tue, 1 Sep 1998 22:22:08 -0700 (PDT)

The following patch fixes two problems with the DOS port. The patch
to LYGlobalDefs.h makes the context help work again (the fragments
in lynx_users_guide.html are still numerical rather than mnemonic).
The patch to LYMail.c prevents ^C during an attempt to send mail from
causing lynx to exit after returning from the mail attempt.

I found another bug, present at least since dev.17, where lynx can't
download files if it is started from one of the root directories of a
disk drive, since it is trying to write to "c:\\file.ext", rather than
"c:\file.ext". I'll try to look for the fix when I get time.

*** lynx2-8-1/src/LYGlobalDefs.h        Sat Aug 29 16:22:40 1998
--- lynx2-8-1/src/LYGlobalDefs.h.new    Mon Aug 31 22:38:22 1998
***************
*** 18,32 ****
  #ifdef HAVE_CONFIG_H
  #include <LYHelp.h>
  #else
! #define COOKIE_JAR_HELP               "Lynx_users_guide.html#Cookies"
  #define CURRENT_KEYMAP_HELP   "keystrokes/keystroke_help.html"
  #define DIRED_MENU_HELP               "keystrokes/dired_help.html"
! #define DOWNLOAD_OPTIONS_HELP "Lynx_users_guide.html#RemoteSource"
  #define HISTORY_PAGE_HELP     "keystrokes/history_help.html"
  #define LIST_PAGE_HELP                "keystrokes/follow_help.html"
  #define OPTIONS_HELP          "keystrokes/option_help.html"
  #define PRINT_OPTIONS_HELP    "keystrokes/print_help.html"
! #define UPLOAD_OPTIONS_HELP   "Lynx_users_guide.html#DirEd"
  #define VISITED_LINKS_HELP    "keystrokes/visited_help.html"
  #endif /* LYHELP_H */
  
--- 18,32 ----
  #ifdef HAVE_CONFIG_H
  #include <LYHelp.h>
  #else
! #define COOKIE_JAR_HELP               "Lynx_users_guide.html#30"
  #define CURRENT_KEYMAP_HELP   "keystrokes/keystroke_help.html"
  #define DIRED_MENU_HELP               "keystrokes/dired_help.html"
! #define DOWNLOAD_OPTIONS_HELP "Lynx_users_guide.html#9"
  #define HISTORY_PAGE_HELP     "keystrokes/history_help.html"
  #define LIST_PAGE_HELP                "keystrokes/follow_help.html"
  #define OPTIONS_HELP          "keystrokes/option_help.html"
  #define PRINT_OPTIONS_HELP    "keystrokes/print_help.html"
! #define UPLOAD_OPTIONS_HELP   "Lynx_users_guide.html#17"
  #define VISITED_LINKS_HELP    "keystrokes/visited_help.html"
  #endif /* LYHELP_H */
  
*** lynx2-8-1/src/LYMail.c      Sat Aug 15 14:57:56 1998
--- lynx2-8-1/src/LYMail.c.new  Sun Aug 30 22:13:20 1998
***************
*** 545,551 ****
      StrAllocCat(command, my_tmpfile);
      stop_curses();
      printf("Sending form content:\n\n$ %s\n\nPlease wait...", command);
!     system(command);
      FREE(command);
      sleep(MessageSecs);
      start_curses();
--- 545,559 ----
      StrAllocCat(command, my_tmpfile);
      stop_curses();
      printf("Sending form content:\n\n$ %s\n\nPlease wait...", command);
! #ifdef __DJGPP__
!       __djgpp_set_ctrl_c(0);
!       _go32_want_ctrl_break(1);
! #endif /* __DJGPP__ */
!        system(command);
! #ifdef __DJGPP__
!       __djgpp_set_ctrl_c(1);
!       _go32_want_ctrl_break(0);
! #endif /* __DJGPP__ */
      FREE(command);
      sleep(MessageSecs);
      start_curses();
***************
*** 800,806 ****
      StrAllocCat(command, address);
      StrAllocCat(command, "\" -F ");
      StrAllocCat(command, my_tmpfile);
!     system(command);
      FREE(command);
      LYRemoveTemp(my_tmpfile);
  #endif
--- 808,822 ----
      StrAllocCat(command, address);
      StrAllocCat(command, "\" -F ");
      StrAllocCat(command, my_tmpfile);
! #ifdef __DJGPP__
!       __djgpp_set_ctrl_c(0);
!       _go32_want_ctrl_break(1);
! #endif /* __DJGPP__ */
!        system(command);
! #ifdef __DJGPP__
!       __djgpp_set_ctrl_c(1);
!       _go32_want_ctrl_break(0);
! #endif /* __DJGPP__ */
      FREE(command);
      LYRemoveTemp(my_tmpfile);
  #endif
***************
*** 1844,1850 ****
      LYCloseTempFP(fp);        /* Close the tmpfile. */
      stop_curses();
      printf("Sending your comment:\n\n$ %s\n\nPlease wait...", command);
!     system(command);
      FREE(command);
      sleep(MessageSecs);
      start_curses();
--- 1860,1874 ----
      LYCloseTempFP(fp);        /* Close the tmpfile. */
      stop_curses();
      printf("Sending your comment:\n\n$ %s\n\nPlease wait...", command);
! #ifdef __DJGPP__
!       __djgpp_set_ctrl_c(0);
!       _go32_want_ctrl_break(1);
! #endif /* __DJGPP__ */
!        system(command);
! #ifdef __DJGPP__
!       __djgpp_set_ctrl_c(1);
!       _go32_want_ctrl_break(0);
! #endif /* __DJGPP__ */
      FREE(command);
      sleep(MessageSecs);
      start_curses();

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

reply via email to

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