Skip to content

Commit

Permalink
Clean up Borland build.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed May 12, 1995
1 parent 8cb52b4 commit 7afb071
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ DISTFILES = ${SRC} regexp.c regexp.h \
cmd.h funcs.h less.h lesskey.h option.h position.h \
install.sh defines.h.in defines.h.top mkinstalldirs \
less.nro lesskey.nro less.man lesskey.man less.hlp \
Makefile.dos defines.dos doscreen.c \
Makefile.dos Makefile.bcc defines.dos doscreen.c \
Makefile.os2 defines.os2

all: less lesskey
Expand Down
22 changes: 10 additions & 12 deletions defines.ds
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@
/* Settings always true for MS-DOS systems. */

/*
* Define MSDOS if compiling for MS-DOS.
* 1 == Microsoft C
* 2 == Turbo/Borland C
* Define MSDOS_COMPILER if compiling for MS-DOS.
* MSOFTC == Microsoft C
* BORLANDC == Turbo/Borland C
*/
#ifdef __BORLANDC__
#define MSDOS BORLANDC
#define MSDOS_COMPILER BORLANDC
#else
#define MSDOS MSOFTC
#define MSDOS_COMPILER MSOFTC
#endif

/*
Expand Down Expand Up @@ -173,9 +173,7 @@
#define HAVE_SHELL 0

/* Define to `long' if <sys/types.h> doesn't define. */
#if MSDOS==MSOFTC
/* #define off_t long */
#else
#if MSDOS_COMPILER==BORLANDC
#define off_t long
#endif

Expand Down Expand Up @@ -214,7 +212,7 @@
#define HAVE_FILENO 1

/* Define HAVE_ERRNO if you have the errno variable */
#if MSDOS==MSOFTC
#if MSDOS_COMPILER==MSOFTC
#define HAVE_ERRNO 0
#else
#define HAVE_ERRNO 1
Expand All @@ -239,7 +237,7 @@
#define HAVE_UPPER_LOWER 1

/* Define if you have the _setjmp function. */
#if MSDOS==MSOFTC
#if MSDOS_COMPILER==MSOFTC
#define HAVE__SETJMP 0
#else
#define HAVE__SETJMP 1
Expand Down Expand Up @@ -294,13 +292,13 @@
#define HAVE_UNISTD_H 0

/* Define if you have the <values.h> header file. */
#if MSDOS==MSOFTC
#if MSDOS_COMPILER==MSOFTC
#define HAVE_VALUES_H 0
#else
#define HAVE_VALUES_H 1
#endif

#if MSDOS == MSOFTC && _MSC_VER >= 700
#if MSDOS_COMPILER == MSOFTC && _MSC_VER >= 700
/*
* The names of these things changed in Microsoft C version 7.0.
*/
Expand Down
10 changes: 5 additions & 5 deletions doscreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
#endif
#include <time.h>

#if MSDOS_COMPILER==MSOFTC
static int flash_created = 0;
#else
#if MSDOS_COMPILER==BORLANDC
static unsigned short *whitescreen;
#define _settextposition(y,x) gotoxy(x,y)
Expand All @@ -54,9 +51,9 @@ static unsigned short *whitescreen;
#define _clearscreen(m) clrscr()
#define _outtext(s) cputs(s)
#endif
#endif

static int init_done = 0;
static int flash_created = 0;
static int videopages;
static long msec_loops;

Expand Down Expand Up @@ -246,11 +243,14 @@ get_term()
static void
initcolor()
{
_settextcolor(nm_fg_color);
_setbkcolor(nm_bg_color);

#if 0
/*
* This clears the screen at startup. This is different from
* the behavior of other versions of less. Disable it for now.
*/
#if 0
int height;
int width;
char *blanks;
Expand Down

0 comments on commit 7afb071

Please sign in to comment.