lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev Lynx-2.8.1dev20 and DJGPP


From: Gisle Vanem
Subject: lynx-dev Lynx-2.8.1dev20 and DJGPP
Date: Fri, 14 Aug 1998 01:49:00 +0200 (CEST)

Hi, this is my first post. I've come across some problems when
compiling the djgpp 2.01 port of Lynx 2.8.1dev20:
 
1. With the Base64 additions (by RJP) to GridText.c I get undefined
   reference to `va_start' because it's #undef'd in LYcurses.h.
   I simply changed GridText.c, r_QueryAddString() around line 74:
 
   - vsprintf(tempstring, format, ap);
   + vsprintf(tempstring, format, (&format)+1);
 
2. LYmain.c has an extern ref to `regs'. Where is it allocated?
   I also changed definition of `init_ctrl_break':
 
   --- lymain.c~   Thu Aug 13 02:10:38 1998
   +++ lymain.c    Thu Aug 13 14:26:42 1998
   @@ -70 +70 @@
   -char init_ctrl_break[1];         <--! globals are bad !!
   +static char init_ctrl_break;
   @@ -400,2 +400 @@
   -    typedef union REGS Regs;
   -    extern Regs regs;
   +    union REGS regs;
   @@ -410 +409 @@
   -    LY_set_ctrl_break(init_ctrl_break[0]);
   +    LY_set_ctrl_break(init_ctrl_break);
   @@ -575 +574 @@
   -       init_ctrl_break[0] = 0;
   +       init_ctrl_break = 0;
   @@ -577 +576 @@
   -       init_ctrl_break[0] = 1;
   +       init_ctrl_break = 1;
 
3. LYcurses.c compiled for PDcurses (v2.3) produces multiple references
   to `ungetch'. Reason being that djgpp's conio have all conio functions
   (including clrscr and ungetch) in one module. I think the following
   fixes that:
 
   --- lycurses.c~ Thu Aug 13 01:56:12 1998
   +++ lycurses.c  Thu Aug 13 01:59:32 1998
   @@ -894 +894,2 @@
   -   clrscr();
   +   clear();
   +   refresh();
 
4. Code inside __BORLANDC__ blindly assumes Windows as target.
   (Borland C large-model or with Powerpack could be an option).
   `#if defined(__BORLANDC__) && defined(_Windows)' would be more 
   appropriate. A new BCC_WIN32 define maybe?
 
S-Lang 1.2+ for DOS still has no mouse support. Is anybody working on it?
Or else I'd like to have a go at it.
 
Who is the primary maintainer of the djgpp port incase I have more
patches, "complaints" etc.?
 
Gisle V.
 
BTW, DIRED support works in djgpp provided `#define lstat stat' is used.
 


reply via email to

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