# 2.11BSD#431 - /usr/src/local/less/less.h

##### Macros

    BE_CHAR           X
    BO_CHAR           X
    BS_CONTROL        X
    BS_NORMAL         X
    BS_SPECIAL        X
    CONTROL           X
    EOF               X
    LITTLE_QUIET      X
    NOT_QUIET         X
    NULL              X
    NULL_POSITION     X
    PR_LONG           X
    PR_MEDIUM         X
    PR_SHORT          X
    SIGNAL            X
    UE_CHAR           X
    UL_CHAR           X
    VERY_QUIET        X
    public            X
    void              X

##### typedef's

    POSITION          X

       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 NULL_POSITION   ((POSITION)(-1))
      24:
      25: #define EOF     (0)
      26: #define NULL        (0)
      27:
      28: /* How quiet should we be? */
      29: #define NOT_QUIET   0   /* Ring bell at eof and for errors */
      30: #define LITTLE_QUIET    1   /* Ring bell only for errors */
      31: #define VERY_QUIET  2   /* Never ring bell */
      32:
      33: /* How should we prompt? */
      34: #define PR_SHORT    0   /* Prompt with colon */
      35: #define PR_MEDIUM   1   /* Prompt with message */
      36: #define PR_LONG     2   /* Prompt with longer message */
      37:
      38: /* How should we handle backspaces? */
      39: #define BS_SPECIAL  0   /* Do special things for underlining and bold */
      40: #define BS_NORMAL   1   /* \b treated as normal char; actually output */
      41: #define BS_CONTROL  2   /* \b treated as control char; prints as ^H */
      42:
      43: /* Special chars used to tell put_line() to do something special */
      44: #define UL_CHAR     '\201'  /* Enter underline mode */
      45: #define UE_CHAR     '\202'  /* Exit underline mode */
      46: #define BO_CHAR     '\203'  /* Enter boldface mode */
      47: #define BE_CHAR     '\204'  /* Exit boldface mode */
      48:
      49: #define CONTROL(c)      ((c)&037)
      50: #define SIGNAL(sig,func)    signal(sig,func)
      51:
      52: /* Library function declarations */
      53: off_t lseek();
      54:
      55: #include "funcs.h"

#### Defined typedef's

POSITION defined in line 16; used 47 times

- in line 23
- in /usr/src/local/less/ch.c line 59, 80, 225, 257, 275, 296-301(2), 307, 417
- in /usr/src/local/less/input.c line 23-27(3), 90-97(4)
- in /usr/src/local/less/line.c line 394-400(3), 438-446(4), 472
- in /usr/src/local/less/position.c line 15, 28, 49, 66, 97
- in /usr/src/local/less/prim.c line 37, 58, 159, 213, 234, 254, 281, 310, 351, 384-387(2), 441, 495, 535, 616
- in /usr/src/local/less/prompt.c line 72, 98

#### Defined macros

BE_CHAR defined in line 47; used 4 times

- in /usr/src/local/less/line.c line 98, 107, 241, 313

BO_CHAR defined in line 46; used 3 times

- in /usr/src/local/less/line.c line 163-168(2), 219

BS_CONTROL defined in line 41; used 1 times

- in /usr/src/local/less/line.c line 346

BS_NORMAL defined in line 40; never used
BS_SPECIAL defined in line 39; used 1 times

- in /usr/src/local/less/line.c line 125

CONTROL defined in line 49; used 10 times

- in /usr/src/local/less/command.c line 345, 356, 370, 382-383(2), 394, 406, 426-427(2), 472

EOF defined in line 25; used 17 times

- in /usr/src/local/less/ch.c line 146, 153, 196, 253, 322, 343
- in /usr/src/local/less/input.c line 34, 40, 75, 120, 141
- in /usr/src/local/less/line.c line 403, 410, 465
- in /usr/src/local/less/main.c line 239
- in /usr/src/local/less/prim.c line 329, 370

LITTLE_QUIET defined in line 30; never used
NOT_QUIET defined in line 29; used 1 times

- in /usr/src/local/less/prim.c line 25

NULL defined in line 26; used 83 times

- in /usr/src/local/less/ch.c line 20, 369-373(2), 386
- in /usr/src/local/less/command.c line 149, 171, 189, 197, 283, 516
- in /usr/src/local/less/main.c line 22, 52, 103, 177, 268, 297, 328
- in /usr/src/local/less/option.c line 69-83(7), 89-94(3), 100, 106, 112, 135(2), 155, 282
- in /usr/src/local/less/output.c line 37
- in /usr/src/local/less/prim.c line 128, 137, 181, 545, 553-555(2), 561, 572-577(2), 583-590(3), 695
- in /usr/src/local/less/prompt.c line 196
- in /usr/src/local/less/screen.c line 224-237(8), 243-244(2), 250-251(2), 261-278(10), 284-294(6), 319-320(2), 343-348(3), 361

NULL_POSITION defined in line 23; used 33 times

- in /usr/src/local/less/ch.c line 187, 416
- in /usr/src/local/less/command.c line 159, 198
- in /usr/src/local/less/input.c line 30-35(3), 97-99(2), 121, 163
- in /usr/src/local/less/line.c line 402-404(2), 446-448(2)
- in /usr/src/local/less/position.c line 87
- in /usr/src/local/less/prim.c line 45, 119, 126, 174, 216, 237, 358, 398, 404, 452, 504, 608, 640, 680
- in /usr/src/local/less/prompt.c line 75-77(2), 102

PR_LONG defined in line 36; used 1 times

- in /usr/src/local/less/option.c line 305

PR_MEDIUM defined in line 35; used 1 times

- in /usr/src/local/less/option.c line 304

PR_SHORT defined in line 34; used 1 times

- in /usr/src/local/less/option.c line 306

SIGNAL defined in line 50; used 10 times

- in /usr/src/local/less/signal.c line 43, 56, 69-71(2), 98, 105-107(2), 125, 178-180(2)

UE_CHAR defined in line 45; used 4 times

- in /usr/src/local/less/line.c line 93, 103, 218, 287

UL_CHAR defined in line 44; used 3 times

- in /usr/src/local/less/line.c line 194-199(2), 242

VERY_QUIET defined in line 31; used 1 times

- in /usr/src/local/less/screen.c line 425

public defined in line 11; used 80 times

- in /usr/src/local/less/ch.c line 9, 21, 223, 245
- in /usr/src/local/less/help.c line 12
- in /usr/src/local/less/input.c line 23, 90
- in /usr/src/local/less/line.c line 50, 62, 394, 438
- in /usr/src/local/less/main.c line 9-25(14), 44, 204, 220, 353
- in /usr/src/local/less/option.c line 26-43(13), 141-146(2), 274
- in /usr/src/local/less/output.c line 7, 23, 105, 119, 150, 165, 225
- in /usr/src/local/less/position.c line 28, 47, 64, 81
- in /usr/src/local/less/prim.c line 8, 208, 229, 263, 347, 382, 446, 473, 482, 516
- in /usr/src/local/less/prompt.c line 204
- in /usr/src/local/less/screen.c line 44-51(8), 78, 171
- in /usr/src/local/less/signal.c line 27
- in /usr/src/local/less/ttyin.c line 14, 22

void defined in line 9; never used

#### Usage of this include

less.h used 14 times

- in /usr/src/local/less/ch.c line 7
- in /usr/src/local/less/command.c line 5
- in /usr/src/local/less/help.c line 1
- in /usr/src/local/less/input.c line 11
- in /usr/src/local/less/line.c line 8
- in /usr/src/local/less/main.c line 5
- in /usr/src/local/less/option.c line 8
- in /usr/src/local/less/output.c line 5
- in /usr/src/local/less/position.c line 11
- in /usr/src/local/less/prim.c line 5
- in /usr/src/local/less/prompt.c line 10
- in /usr/src/local/less/screen.c line 8
- in /usr/src/local/less/signal.c line 14
- in /usr/src/local/less/ttyin.c line 5

Last modified: 1990-07-10 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 661 |