lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev dev16: color styles on DJGPP port with PDCurses 2.3 (patch)


From: Leonid Pauzner
Subject: lynx-dev dev16: color styles on DJGPP port with PDCurses 2.3 (patch)
Date: Tue, 7 Dec 1999 18:47:55 +0300 (MSK)

* changes to build dev16 with color styles on DJGPP/PDCurses 2.3
  (you need to uncomment a line in makefiles to build lynx that way).



Changes:
1) DOS makefiles changes

2) limits.h file shipped with the compiler should be included,
otherwise 'CHAR_BITS' will be undefined

3) curses.h should be hacked to include 'getattrs'
That is in addition to one mentioned in lynx INSTALLATION file.
Clean PDCurses 2.3 have the following changes (among others) against
Wayne version available on his site, FYI:

> --- ../curses.h Sun Oct 12 12:46:28 1997
> +++ curses.h    Fri Jul 10 11:24:28 1998
> @@ -1926,15 +1921,6 @@
>  # define wtitleofs(w,ofs)       (w->_title_ofs = ofs)
>  #endif
>
> -/* WB hacks for lynx */
> -
> -#define getbkgd(win)            ((win)->_bkgd)
> -#define wgetbkgd(win)           ((win)->_bkgd)
> -#define tigetstr(x)             (-1)
> -#define tigetnum(x)             tigetstr(x)
> -#define getattrs(win)           ((win)->_attrs)
> -#define strcasecmp(x,y)         strcmp(x,y)
> -#define strncasecmp(x,y,z)      strncmp(x,y,z)
>
>  /*
>   *      Load up curspriv.h.     This should be in the same place as



The patch below:

diff -u old/INSTALLATION ./INSTALLATION
--- old/INSTALLATION        Wed Dec  1 08:10:06 1999
+++ ./INSTALLATION  Tue Dec  7 18:31:14 1999
@@ -727,15 +727,16 @@
     you wish to use PDCurses 2.3, you need to first apply the following
     patch:

-*** curses.h   Thu Jul  9 19:38:28 1998
---- curses.h.new       Sat Aug 15 11:02:08 1998
+*** curses.h   Fri Jul 10 11:24:28 1998
+--- curses.h.new       Mon Dec  6 22:46:08 1999
 ***************
 *** 1802,1807 ****
---- 1802,1808 ----
+--- 1802,1809 ----
   #define getbegx(w)              (w)->_begx
   #define getbegy(w)              (w)->_begy
   #define getbegyx(w,y,x)         ( y = (w)->_begy, x = (w)->_begx )
 + #define getbkgd(w)              ((w)->_bkgd)
++ #define getattrs(win)           ((win)->_attrs)
   #define getch()                 wgetch(stdscr)
   #define getmaxx(w)              (w)->_maxx
   #define getmaxy(w)              (w)->_maxy


diff -u old/www/library/implementation/htutils.h 
./www/library/implementation/htutils.h
--- old/www/library/implementation/htutils.h       Wed Dec  1 08:09:44 1999
+++ ./www/library/implementation/htutils.h Mon Dec  6 20:20:02 1999
@@ -22,6 +22,7 @@
 #ifdef DJGPP
 #include <sys/config.h>        /* pseudo-autoconf values for DJGPP 
libc/headers */
 #define HAVE_TRUNCATE 1
+#include <limits.h>
 #endif /* DJGPP */

 #include <stdio.h>
diff -u old/www/library/djgpp/makefile ./www/library/djgpp/makefile
--- old/www/library/djgpp/makefile        Tue Dec  7 18:09:16 1999
+++ ./www/library/djgpp/makefile  Tue Dec  7 18:11:12 1999
@@ -7,8 +7,16 @@
 # The ASIS repository's name for the machine we are on
 #ASIS_MACH = hardware/os

+# Use this option to enable optional and *experimental* color style.
+#ENABLE_COLOR_STYLE = \
+ -DUSE_COLOR_STYLE \
+ -DUSE_HASH \
+ -DLINKEDSTYLES
+
+
 CFLAGS = -O2 -DUSE_ZLIB -DDOSPATH -DNOUSERS -DDISP_PARTIAL \
 -DDIRED_SUPPORT -DSOURCE_CACHE -DUSE_PSRC \
+ $(ENABLE_COLOR_STYLE) \
 -DEXP_FILE_UPLOAD \
 -DWATT32 \
 -I../Implementation \
diff -u old/src/makefile.dos ./src/makefile.dos
--- old/src/makefile.dos    Tue Dec  7 18:10:08 1999
+++ ./src/makefile.dos      Tue Dec  7 18:11:20 1999
@@ -20,10 +20,17 @@
  -DOK_ZIP \
  -DOK_OVERRIDE

+# Use this option to enable optional and *experimental* color style.
+#ENABLE_COLOR_STYLE = \
+ -DUSE_COLOR_STYLE \
+ -DUSE_HASH \
+ -DLINKEDSTYLES
+
 CC = gcc

 MCFLAGS = -O2 \
  $(DIRED_DEFS) \
+ $(ENABLE_COLOR_STYLE) \
  -DACCESS_AUTH \
  -DCOLOR_CURSES \
  -DDISP_PARTIAL \



reply via email to

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