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
DIV
defined in line
43;
never used
DO
defined in line
32;
never used
DONE
defined in line
37; used 1 times
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
EOF
defined in line
55; used 4 times
FALSE
defined in line
50; used 10 times
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
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
MINUS
defined in line
60; used 1 times
NEQ
defined in line
45; used 1 times
NL
defined in line
56; used 19 times
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
QUOTE
defined in line
53; used 5 times
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
SKIP
defined in line
42;
never used
SP
defined in line
57; used 4 times
STRIP
defined in line
52; used 8 times
THEN
defined in line
20;
never used
TRUE
defined in line
49; used 4 times
TYPE
defined in line
14; used 2 times
UNION
defined in line
16;
never used
WHILE
defined in line
31;
never used
Usage of this include