lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV patch for devel code on VMS


From: Foteos Macrides
Subject: LYNX-DEV patch for devel code on VMS
Date: Tue, 23 Sep 1997 20:45:58 -0500 (EST)

        Appended is a patch set for Lynx v2.7.1ac-0.70 to fix up some
problems with building it on VMS, and to fix up some "regressions" in .70
(relative to Klaus'.69 fix up) in the const handling that were problematic
for Unix as well.  Note that the current fotemods code also fixes the
"not just busy work" problems in HTML.c, where strings declared as const
were not just being recast, but actually being modified.  I didn't include
that in this patch, on the assumption that Klaus would prefer to work
those fotemods into the devel code himself.

        Also note that the .com and .mms files still have not been
modified to include the new devel .c modules, and I haven't tried
to build or use those on VMS.

        Note this this patch set does not retore me to a "currently
active Lynx developer", but if any VMSers with substantive programming
experience *should* become "currently active Lynx developers", they at
least can start with devel code that builds and runs on VMS.

                                Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 address@hidden         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================

*** lynx2-7-1/build.com_ori     Fri Sep 19 15:00:41 1997
--- lynx2-7-1/build.com Tue Sep 23 17:24:19 1997
***************
*** 43,49 ****
  $!
  $ ON CONTROL_Y THEN GOTO CLEANUP
  $ ON ERROR THEN GOTO CLEANUP
- $ if f$trnlnm("SYS").eqs."" then define sys sys$library:
  $ proc = f$environment("PROCEDURE")
  $ where = f$parse(proc,,,"DEVICE") + f$parse(proc,,,"DIRECTORY")
  $ set default 'where'
--- 43,48 ----
*** lynx2-7-1/WWW/Library/Implementation/HTMLGen.c_ori  Fri Sep 19 15:00:41 1997
--- lynx2-7-1/WWW/Library/Implementation/HTMLGen.c      Tue Sep 23 16:29:14 1997
***************
*** 262,268 ****
        HTStructured *,         me,
        int,                    element_number,
        CONST BOOL*,            present,
!       char **,                value,
        char **,                insert)
  {
      int i;
--- 262,268 ----
        HTStructured *,         me,
        int,                    element_number,
        CONST BOOL*,            present,
!       CONST char **,          value,
        char **,                insert)
  {
      int i;
*** lynx2-7-1/WWW/Library/Implementation/SGML.c_ori     Thu Sep 18 21:14:27 1997
--- lynx2-7-1/WWW/Library/Implementation/SGML.c Tue Sep 23 16:29:31 1997
***************
*** 580,586 ****
  typedef enum {
      close_NO  = 0,
      close_error = 1,
!     close_valid       = 2,
  } canclose_t;
  
  PRIVATE canclose_t can_close ARGS2(
--- 580,586 ----
  typedef enum {
      close_NO  = 0,
      close_error = 1,
!     close_valid       = 2
  } canclose_t;
  
  PRIVATE canclose_t can_close ARGS2(
*** lynx2-7-1/WWW/Library/Implementation/tcp.h_ori      Thu Sep 11 20:18:32 1997
--- lynx2-7-1/WWW/Library/Implementation/tcp.h  Tue Sep 23 16:29:37 1997
***************
*** 67,72 ****
--- 67,73 ----
  
  #include <sys/types.h>
  
+ #ifndef VMS
  #if HAVE_DIRENT_H
  # include <dirent.h>
  # define D_NAMLEN(dirent) strlen((dirent)->d_name)
***************
*** 85,90 ****
--- 86,92 ----
  #  include <ndir.h>
  # endif
  #endif
+ #endif /* !VMS */
  
  #if TIME_WITH_SYS_TIME
  # include <sys/time.h>
*** lynx2-7-1/src/LYOptions.c_ori       Thu Sep 18 21:14:27 1997
--- lynx2-7-1/src/LYOptions.c   Tue Sep 23 16:32:39 1997
***************
*** 234,240 ****
  
      move(L_CHARSET, 5);
      addstr("display (C)haracter set      : ");
!     addstr(LYchar_set_names[current_char_set]);
  
      move(L_LANGUAGE, 5);
      addstr("preferred document lan(G)uage: ");
--- 234,240 ----
  
      move(L_CHARSET, 5);
      addstr("display (C)haracter set      : ");
!     addstr((char *)LYchar_set_names[current_char_set]);
  
      move(L_LANGUAGE, 5);
      addstr("preferred document lan(G)uage: ");
***************
*** 767,773 ****
  #if defined(VMS) || defined(USE_SLANG)
                    move(L_CHARSET, COL_OPTION_VALUES);
                    clrtoeol();
!                   addstr(LYchar_set_names[current_char_set]);
  #endif /* VMS || USE_SLANG */
                }
                /*
--- 767,773 ----
  #if defined(VMS) || defined(USE_SLANG)
                    move(L_CHARSET, COL_OPTION_VALUES);
                    clrtoeol();
!                   addstr((char *)LYchar_set_names[current_char_set]);
  #endif /* VMS || USE_SLANG */
                }
                /*
*** lynx2-7-1/src/UCdomap.c_ori Fri Sep 19 15:00:41 1997
--- lynx2-7-1/src/UCdomap.c     Tue Sep 23 16:32:52 1997
***************
*** 882,889 ****
   *  OK now, finally, some stuff that is more specifically for Lynx: - KW
   */
  #ifdef NOTDEFINED
! PUBLIC int UCGetcharset_byMIMEname PARAMS((char * UC_MIMEcharset));
! PUBLIC int UCGetcharset_byLYNXname PARAMS((char * UC_LYNXcharset));
  #endif /* NOTDEFINED */
  
  PUBLIC int UCTransUniChar ARGS2(
--- 882,889 ----
   *  OK now, finally, some stuff that is more specifically for Lynx: - KW
   */
  #ifdef NOTDEFINED
! PUBLIC int UCGetcharset_byMIMEname PARAMS((CONST char * UC_MIMEcharset));
! PUBLIC int UCGetcharset_byLYNXname PARAMS((CONST char * UC_LYNXcharset));
  #endif /* NOTDEFINED */
  
  PUBLIC int UCTransUniChar ARGS2(
***************
*** 1600,1607 ****
   * is done here yet.
   */
  PUBLIC void UC_Charset_Setup ARGS8(
!       char *,                 UC_MIMEcharset,
!       char *,                 UC_LYNXcharset,
        u8 *,                   unicount,
        u16 *,                  unitable,
        int,                    nnuni,
--- 1600,1607 ----
   * is done here yet.
   */
  PUBLIC void UC_Charset_Setup ARGS8(
!       CONST char *,           UC_MIMEcharset,
!       CONST char *,           UC_LYNXcharset,
        u8 *,                   unicount,
        u16 *,                  unitable,
        int,                    nnuni,
*** lynx2-7-1/src/UCdomap.h_ori Fri Sep 19 15:00:41 1997
--- lynx2-7-1/src/UCdomap.h     Tue Sep 23 16:33:19 1997
***************
*** 23,30 ****
     UC[A-Z]* to be exported to other parts of Lynx. -kw
  */
  extern void UC_Charset_Setup PARAMS((
!       char *                  UC_MIMEcharset,
!       char *                  UC_LYNXcharset,
        u8 *                    unicount,
        u16 *                   unitable,
        int                     nnuni,
--- 23,30 ----
     UC[A-Z]* to be exported to other parts of Lynx. -kw
  */
  extern void UC_Charset_Setup PARAMS((
!       CONST char *            UC_MIMEcharset,
!       CONST char *            UC_LYNXcharset,
        u8 *                    unicount,
        u16 *                   unitable,
        int                     nnuni,
***************
*** 37,44 ****
  int UC_GNhandles[4] = {-1, -1, -1, -1};
  
  struct UC_charset {
!   char *MIMEname;
!   char *LYNXname;
    u8* unicount;
    u16* unitable;
    int num_uni;
--- 37,44 ----
  int UC_GNhandles[4] = {-1, -1, -1, -1};
  
  struct UC_charset {
!   CONST char *MIMEname;
!   CONST char *LYNXname;
    u8* unicount;
    u16* unitable;
    int num_uni;
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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