1: /*
   2:  * Standard include file for "less".
   3:  */
   4: 
   5: /*
   6:  * Language details.
   7:  */
   8: #if !VOID
   9: #define void  int
  10: #endif
  11: #define public      /* PUBLIC FUNCTION */
  12: 
  13: /*
  14:  * Special types and constants.
  15:  */
  16: typedef long        POSITION;
  17: /*
  18:  * {{ Warning: if POSITION is changed to other than "long",
  19:  *    you may have to change some of the printfs which use "%ld"
  20:  *    to print a variable of type POSITION. }}
  21:  */
  22: 
  23: #define END_POSITION    ((POSITION)(-2))
  24: #define NULL_POSITION   ((POSITION)(-1))
  25: 
  26: #define EOF     (0)
  27: #define NULL        (0)
  28: 
  29: /* How quiet should we be? */
  30: #define NOT_QUIET   0   /* Ring bell at eof and for errors */
  31: #define LITTLE_QUIET    1   /* Ring bell only for errors */
  32: #define VERY_QUIET  2   /* Never ring bell */
  33: 
  34: /* How should we prompt? */
  35: #define PR_SHORT    0   /* Prompt with colon */
  36: #define PR_MEDIUM   1   /* Prompt with message */
  37: #define PR_LONG     2   /* Prompt with longer message */
  38: 
  39: /* How should we handle backspaces? */
  40: #define BS_UNDERLINE    0   /* Underlining converted to underline mode */
  41: #define BS_NORMAL   1   /* \b treated as normal char; actually output */
  42: #define BS_CONTROL  2   /* \b treated as control char; prints as ^H */
  43: 
  44: /* Flag to eq_message() telling what to put in the message */
  45: #define MNAME       001 /* File name */
  46: #define MOF     002 /* "file x of y" */
  47: #define MBYTE       004 /* "byte x/y" */
  48: #define MPCT        010 /* Percentage into the file */
  49: 
  50: /* Special chars used to tell put_line() to do something special */
  51: #define UL_CHAR     '\201'  /* Enter underline mode */
  52: #define UE_CHAR     '\202'  /* Exit underline mode */
  53: 
  54: #define CONTROL(c)      ((c)&037)
  55: #define SIGNAL(sig,func)    signal(sig,func)
  56: 
  57: off_t lseek();
  58: 
  59: #include "funcs.h"
  60: 
  61: #ifdef  NRTC
  62: #define carat_char(c)   (c ^ 0100)
  63: #endif	NRTC

Defined typedef's

Defined macros

BS_CONTROL defined in line 42; used 1 times
BS_NORMAL defined in line 41; never used
BS_UNDERLINE defined in line 40; used 1 times
CONTROL defined in line 54; used 10 times
END_POSITION defined in line 23; never used
LITTLE_QUIET defined in line 31; never used
MBYTE defined in line 47; never used
MNAME defined in line 45; never used
MOF defined in line 46; never used
MPCT defined in line 48; never used
NOT_QUIET defined in line 30; used 1 times
PR_LONG defined in line 37; never used
PR_MEDIUM defined in line 36; never used
PR_SHORT defined in line 35; never used
SIGNAL defined in line 55; used 22 times
UE_CHAR defined in line 52; used 3 times
UL_CHAR defined in line 51; used 2 times
VERY_QUIET defined in line 32; used 1 times
void defined in line 9; never used

Usage of this include

Last modified: 1986-04-21
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1402
Valid CSS Valid XHTML 1.0 Strict