# 2.11BSD#431 - /usr/src/bin/sh/mac.h

##### Macros

    ANDF              X
    BEGIN             X
    COLON             X
    DIV               X
    DO                X
    DONE              X
    ELIF              X
    ELSE              X
    END               X
    ENDSW             X
    EOF               X
    FALSE             X
    FI                X
    FOR               X
    IF                X
    IN                X
    LOBYTE            X
    LOCAL             X
    LOOP              X
    LQ                X
    MINUS             X
    NEQ               X
    NL                X
    OD                X
    ORF               X
    PER               X
    POOL              X
    PROC              X
    QUOTE             X
    REG               X
    REM               X
    REP               X
    RQ                X
    SKIP              X
    SP                X
    STRIP             X
    STRUCT            X
    SWITCH            X
    THEN              X
    TRUE              X
    TYPE              X
    UNION             X
    WHILE             X

       1: /*	mac.h	4.2	82/12/24	*/
       2:
       3: #
       4: /*
       5:  *	UNIX shell
       6:  *
       7:  *	S. R. Bourne
       8:  *	Bell Telephone Laboratories
       9:  *
      10:  */
      11:
      12: #define LOCAL   static
      13: #define PROC    extern
      14: #define TYPE    typedef
      15: #define STRUCT  TYPE struct
      16: #define UNION   TYPE union
      17: #define REG register
      18:
      19: #define IF  if(
      20: #define THEN    ){
      21: #define ELSE    } else {
      22: #define ELIF    } else if (
      23: #define FI  ;}
      24:
      25: #define BEGIN   {
      26: #define END }
      27: #define SWITCH  switch(
      28: #define IN  ){
      29: #define ENDSW   }
      30: #define FOR for(
      31: #define WHILE   while(
      32: #define DO  ){
      33: #define OD  ;}
      34: #define REP do{
      35: #define PER }while(
      36: #undef DONE
      37: #define DONE    );
      38: #define LOOP    for(;;){
      39: #define POOL    }
      40:
      41:
      42: #define SKIP    ;
      43: #define DIV /
      44: #define REM %
      45: #define NEQ ^
      46: #define ANDF    &&
      47: #define ORF ||
      48:
      49: #define TRUE    (-1)
      50: #define FALSE   0
      51: #define LOBYTE  0377
      52: #define STRIP   0177
      53: #define QUOTE   0200
      54:
      55: #define EOF 0
      56: #define NL  '\n'
      57: #define SP  ' '
      58: #define LQ  '`'
      59: #define RQ  '\''
      60: #define MINUS   '-'
      61: #define COLON   ':'

#### Defined macros

ANDF defined in line 46; never used
BEGIN defined in line 25; never used
COLON defined in line 61; used 2 times

- in /usr/src/bin/sh/service.c line 106-108(2)

DIV defined in line 43; never used
DO defined in line 32; never used
DONE defined in line 37; used 1 times

- in line 36

ELIF defined in line 22; never used
ELSE defined in line 21; never used
END defined in line 26; never used
ENDSW defined in line 29; used 8 times

- in /usr/src/bin/sh/cmd.c line 109, 303, 351
- in /usr/src/bin/sh/expand.c line 160
- in /usr/src/bin/sh/macro.c line 48
- in /usr/src/bin/sh/service.c line 181
- in /usr/src/bin/sh/xec.c line 228, 402

EOF defined in line 55; used 4 times

- in /usr/src/bin/sh/word.c line 70, 109, 118-120(2)

FALSE defined in line 50; used 10 times

- in /usr/src/bin/sh/io.c line 26, 58
- in /usr/src/bin/sh/main.c line 23, 77
- in /usr/src/bin/sh/name.c line 223-226(2)
- in /usr/src/bin/sh/print.c line 78
- in /usr/src/bin/sh/string.c line 38
- in /usr/src/bin/sh/word.c line 60, 77

FI defined in line 23; never used
FOR defined in line 30; never used
IF defined in line 19; never used
IN defined in line 28; used 8 times

- in /usr/src/bin/sh/cmd.c line 85, 204, 327
- in /usr/src/bin/sh/expand.c line 129
- in /usr/src/bin/sh/macro.c line 39
- in /usr/src/bin/sh/service.c line 143
- in /usr/src/bin/sh/xec.c line 44, 70

LOBYTE defined in line 51; used 1 times

- in /usr/src/bin/sh/service.c line 258

LOCAL defined in line 12; used 38 times

- in /usr/src/bin/sh/args.c line 17, 105
- in /usr/src/bin/sh/cmd.c line 46, 120, 138, 154, 193, 312, 318, 362, 369, 377, 395
- in /usr/src/bin/sh/expand.c line 163
- in /usr/src/bin/sh/macro.c line 17-22(3), 33, 53, 172, 232
- in /usr/src/bin/sh/main.c line 23, 100
- in /usr/src/bin/sh/name.c line 217, 233, 241, 264, 308, 316
- in /usr/src/bin/sh/service.c line 114-115(2), 132, 201-202(2), 334, 377
- in /usr/src/bin/sh/word.c line 127
- in /usr/src/bin/sh/xec.c line 17

LOOP defined in line 38; never used
LQ defined in line 58; used 1 times

- in /usr/src/bin/sh/cmd.c line 402

MINUS defined in line 60; used 1 times

- in /usr/src/bin/sh/expand.c line 137

NEQ defined in line 45; used 1 times

- in /usr/src/bin/sh/macro.c line 109

NL defined in line 56; used 19 times

- in /usr/src/bin/sh/blok.c line 113
- in /usr/src/bin/sh/cmd.c line 77-79(2), 100, 239, 314(2), 388
- in /usr/src/bin/sh/io.c line 127-131(2)
- in /usr/src/bin/sh/macro.c line 204
- in /usr/src/bin/sh/main.c line 164, 172
- in /usr/src/bin/sh/print.c line 22
- in /usr/src/bin/sh/word.c line 33, 86-87(2), 116
- in /usr/src/bin/sh/xec.c line 423

OD defined in line 33; never used
ORF defined in line 47; never used
PER defined in line 35; never used
POOL defined in line 39; never used
PROC defined in line 13; used 16 times

- in /usr/src/bin/sh/args.c line 16
- in /usr/src/bin/sh/cmd.c line 17-27(11)
- in /usr/src/bin/sh/expand.c line 30
- in /usr/src/bin/sh/main.c line 31
- in /usr/src/bin/sh/name.c line 16
- in /usr/src/bin/sh/service.c line 17

QUOTE defined in line 53; used 5 times

- in /usr/src/bin/sh/macro.c line 147, 167
- in /usr/src/bin/sh/service.c line 300
- in /usr/src/bin/sh/word.c line 40, 90

REG defined in line 17; used 175 times

- in /usr/src/bin/sh/args.c line 35-37(3), 76-77(2), 90-92(3), 108-110(3)
- in /usr/src/bin/sh/blok.c line 34-38(3), 60-61(2), 75, 84, 96-97(2)
- in /usr/src/bin/sh/cmd.c line 39, 50, 70-73(2), 122-123(2), 140, 155-160(2), 196-197(2), 219, 265, 280-282(3), 321-323(3), 371, 380
- in /usr/src/bin/sh/error.c line 71
- in /usr/src/bin/sh/expand.c line 40, 51, 79, 96, 110, 119-121(2), 166-167(2), 189
- in /usr/src/bin/sh/fault.c line 25-27(2), 58, 68, 77-78(2), 104-105(2)
- in /usr/src/bin/sh/io.c line 22, 30-32(2), 43, 52, 73, 82, 94, 115-117(2)
- in /usr/src/bin/sh/macro.c line 23-25(2), 34-37(2), 56, 64-69(2), 158-159(2), 176-177(2), 184-189(2), 216-218(2)
- in /usr/src/bin/sh/main.c line 40, 103-104(2), 184
- in /usr/src/bin/sh/name.c line 36-38(3), 53-57(2), 71-72(2), 104, 133-135(3), 179, 190-193(3), 220, 242, 254, 265-267(2), 276, 287, 302, 328
- in /usr/src/bin/sh/print.c line 39, 57, 77(2), 90-92(3)
- in /usr/src/bin/sh/service.c line 39-40(2), 76, 89-91(2), 99-103(2), 120-121(2), 134-136(2), 206, 216, 237-242(3), 292-294(3), 306, 314-315(2), 338, 348, 363-365(3), 378-381(3)
- in /usr/src/bin/sh/setbrk.c line 18
- in /usr/src/bin/sh/stak.c line 25-26(2), 54-56(2), 63
- in /usr/src/bin/sh/string.c line 21, 28-31(2), 42, 55
- in /usr/src/bin/sh/word.c line 23-24(2), 84, 98-100(3), 129-130(2)
- in /usr/src/bin/sh/xec.c line 31, 37-39(2), 74, 386-391(2)

REM defined in line 44; never used
REP defined in line 34; never used
RQ defined in line 59; used 1 times

- in /usr/src/bin/sh/cmd.c line 407

SKIP defined in line 42; never used
SP defined in line 57; used 4 times

- in /usr/src/bin/sh/blok.c line 113
- in /usr/src/bin/sh/macro.c line 123
- in /usr/src/bin/sh/print.c line 26
- in /usr/src/bin/sh/word.c line 110

STRIP defined in line 52; used 8 times

- in /usr/src/bin/sh/expand.c line 113, 125, 139, 146, 173
- in /usr/src/bin/sh/macro.c line 204, 222
- in /usr/src/bin/sh/service.c line 298

STRUCT defined in line 15; never used
SWITCH defined in line 27; used 8 times

- in /usr/src/bin/sh/cmd.c line 85, 204, 327
- in /usr/src/bin/sh/expand.c line 129
- in /usr/src/bin/sh/macro.c line 39
- in /usr/src/bin/sh/service.c line 143
- in /usr/src/bin/sh/xec.c line 44, 70

THEN defined in line 20; never used
TRUE defined in line 49; used 4 times

- in /usr/src/bin/sh/cmd.c line 148
- in /usr/src/bin/sh/io.c line 57
- in /usr/src/bin/sh/name.c line 230
- in /usr/src/bin/sh/string.c line 35

TYPE defined in line 14; used 2 times

- in line 15-16(2)

UNION defined in line 16; never used
WHILE defined in line 31; never used

#### Usage of this include

mac.h used 1 times

- in /usr/src/bin/sh/defs.h line 76

Last modified: 1993-01-18 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1070 |