version 1.1.1.3, 2011/09/16 17:47:05 |
version 1.1.1.4, 2014/04/25 13:33:48 |
|
|
/* |
/* |
* Copyright (C) 1984-2011 Mark Nudelman |
* Copyright (C) 1984-2012 Mark Nudelman |
* |
* |
* You may distribute under the terms of either the GNU General Public |
* You may distribute under the terms of either the GNU General Public |
* License or the Less License, as specified in the README file. |
* License or the Less License, as specified in the README file. |
* |
* |
* For more information about less, or for information on how to |
* For more information, see the README file. |
* contact the author, see the README file. |
|
*/ |
*/ |
|
|
#define NEWBOT 1 |
#define NEWBOT 1 |
|
|
#if HAVE_STRING_H |
#if HAVE_STRING_H |
#include <string.h> |
#include <string.h> |
#endif |
#endif |
|
#include <signal.h> |
|
|
/* OS-specific includes */ |
/* OS-specific includes */ |
#ifdef _OSK |
#ifdef _OSK |
|
|
#if _OSK_MWC32 |
#if _OSK_MWC32 |
#define LSIGNAL(sig,func) os9_signal(sig,func) |
#define LSIGNAL(sig,func) os9_signal(sig,func) |
#else |
#else |
#define LSIGNAL(sig,func) signal(sig,func) |
#define LSIGNAL(sig,func) lsignal(sig,func) |
#endif |
#endif |
|
|
#if HAVE_SIGPROCMASK |
#if HAVE_SIGPROCMASK |
|
|
#define CH_KEEPOPEN 002 |
#define CH_KEEPOPEN 002 |
#define CH_POPENED 004 |
#define CH_POPENED 004 |
#define CH_HELPFILE 010 |
#define CH_HELPFILE 010 |
|
#define CH_NODATA 020 /* Special case for zero length files */ |
|
|
|
|
#define ch_zero() ((POSITION)0) |
#define ch_zero() ((POSITION)0) |
|
|
#define FAKE_HELPFILE "@/\\less/\\help/\\file/\\@" |
#define FAKE_HELPFILE "@/\\less/\\help/\\file/\\@" |
|
#define FAKE_EMPTYFILE "@/\\less/\\empty/\\file/\\@" |
|
|
/* Flags for cvt_text */ |
/* Flags for cvt_text */ |
#define CVT_TO_LC 01 /* Convert upper-case to lower-case */ |
#define CVT_TO_LC 01 /* Convert upper-case to lower-case */ |