lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev DOS patch for dev.26


From: Doug Kaufman
Subject: lynx-dev DOS patch for dev.26
Date: Sun, 13 Sep 1998 22:59:31 -0700 (PDT)

Here are a few suggestions for dev.26. A while back, Gisle Vanem
suggested a change for DOS in tcp.h which got rid of compile warnings
in regard to getsockname, but it never made it into the distribution.
I looked again at the change to quote_pathname in LYUtils.c, and
realized that the patch for DJGPP seemed to work, but doesn't really
make sense. A revised patch follows which makes quote_pathname do
nothing under DJGPP. Lastly, now that we are distributing lynx as
a bzip2 file, it seems that lynx ought to recognize bzip2 files by
default, rather than try to download them as text/plain.
                           Doug

*** lynx2-8-1/WWW/Library/Implementation/tcp.h  Mon Sep  7 03:02:16 1998
--- lynx2-8-1/WWW/Library/Implementation/tcp.h.new      Sun Sep 13 21:05:50 1998
***************
*** 472,477 ****
--- 472,478 ----
  #define NETREAD read_s
  #undef NETCLOSE
  #define NETCLOSE close_s
+ #define getsockname getsockname_s
  #endif
  
  #ifdef HAVE_UNISTD_H
*** lynx2-8-1/src/LYUtils.c     Sun Sep 13 07:35:56 1998
--- lynx2-8-1/src/LYUtils.c.new Sun Sep 13 22:22:56 1998
***************
*** 2734,2739 ****
--- 2734,2740 ----
   */
  PUBLIC char * quote_pathname ARGS1(
        char *,         pathname)
+ #ifndef __DJGPP__
  {
      size_t i, n = 0;
      char * result;
***************
*** 2746,2754 ****
        outofmem(__FILE__, "quote_pathname");
  
      n = 0;
- #ifndef __DJGPP__
      result[n++] = '\'';
- #endif /* __DJGPP__ */
      for (i = 0; i < strlen(pathname); i++) {
        if (pathname[i] == '\'') {
            result[n++] = '\'';
--- 2747,2753 ----
***************
*** 2760,2771 ****
            result[n++] = pathname[i];
        }
      }
- #ifndef __DJGPP__
      result[n++] = '\'';
- #endif /* !__DJGPP__ */
      result[n] = '\0';
      return result;
  }
  
  #if HAVE_UTMP
  extern char *ttyname PARAMS((int fd));
--- 2759,2773 ----
            result[n++] = pathname[i];
        }
      }
      result[n++] = '\'';
      result[n] = '\0';
      return result;
  }
+ #else
+ {
+       return pathname;
+ }
+ #endif /* !__DJGPP__ */
  
  #if HAVE_UTMP
  extern char *ttyname PARAMS((int fd));
*** lynx2-8-1/src/HTInit.c      Sun Sep 13 07:35:56 1998
--- lynx2-8-1/src/HTInit.c.new  Sun Sep 13 22:06:54 1998
***************
*** 687,692 ****
--- 687,694 ----
  
      HTSetSuffix(".zip",               "application/x-Zip File", "binary", 
1.0);
  
+     HTSetSuffix(".bz2",               "application/x-bzip2", "binary", 1.0);
+ 
      HTSetSuffix(".uu",                "application/x-UUencoded", "8bit", 1.0);
  
      HTSetSuffix(".hqx",               "application/x-Binhex", "8bit", 1.0);
*** lynx2-8-1/lynx.cfg  Sun Sep 13 07:35:56 1998
--- lynx2-8-1/lynx.cfg.new      Sun Sep 13 22:08:50 1998
***************
*** 1325,1330 ****
--- 1325,1331 ----
  #SUFFIX:.tar:application/octet-stream
  #SUFFIX:.Z:application/octet-stream
  #SUFFIX:.gz:application/octet-stream
+ #SUFFIX:.bz2:application/octet-stream
  #SUFFIX:.zip:application/octet-stream
  #SUFFIX:.lzh:application/octet-stream
  #SUFFIX:.lha:application/octet-stream

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

reply via email to

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