xref: /original-bsd/old/sh/mac.h (revision 3a9f899c)
1*3a9f899cSbostic /*	mac.h	4.3	87/10/26	*/
21c09f2b5Smckusick 
31c09f2b5Smckusick #
41c09f2b5Smckusick /*
51c09f2b5Smckusick  *	UNIX shell
61c09f2b5Smckusick  *
71c09f2b5Smckusick  *	S. R. Bourne
81c09f2b5Smckusick  *	Bell Telephone Laboratories
91c09f2b5Smckusick  *
101c09f2b5Smckusick  */
111c09f2b5Smckusick 
121c09f2b5Smckusick #define LOCAL	static
131c09f2b5Smckusick #define PROC	extern
141c09f2b5Smckusick #define TYPE	typedef
151c09f2b5Smckusick #define STRUCT	TYPE struct
161c09f2b5Smckusick #define UNION	TYPE union
171c09f2b5Smckusick #define REG	register
181c09f2b5Smckusick 
191c09f2b5Smckusick #define IF	if(
201c09f2b5Smckusick #define THEN	){
211c09f2b5Smckusick #define ELSE	} else {
221c09f2b5Smckusick #define ELIF	} else if (
231c09f2b5Smckusick #define FI	;}
241c09f2b5Smckusick 
251c09f2b5Smckusick #define BEGIN	{
261c09f2b5Smckusick #define END	}
271c09f2b5Smckusick #define SWITCH	switch(
281c09f2b5Smckusick #define IN	){
291c09f2b5Smckusick #define ENDSW	}
301c09f2b5Smckusick #define FOR	for(
311c09f2b5Smckusick #define WHILE	while(
321c09f2b5Smckusick #define DO	){
331c09f2b5Smckusick #define OD	;}
341c09f2b5Smckusick #define REP	do{
351c09f2b5Smckusick #define PER	}while(
36b8fcaf07Ssam #undef DONE
371c09f2b5Smckusick #define DONE	);
381c09f2b5Smckusick #define LOOP	for(;;){
391c09f2b5Smckusick #define POOL	}
401c09f2b5Smckusick 
411c09f2b5Smckusick 
421c09f2b5Smckusick #define SKIP	;
431c09f2b5Smckusick #define DIV	/
441c09f2b5Smckusick #define REM	%
451c09f2b5Smckusick #define NEQ	^
461c09f2b5Smckusick #define ANDF	&&
471c09f2b5Smckusick #define ORF	||
481c09f2b5Smckusick 
491c09f2b5Smckusick #define TRUE	(-1)
501c09f2b5Smckusick #define FALSE	0
511c09f2b5Smckusick #define LOBYTE	0377
521c09f2b5Smckusick #define STRIP	0177
531c09f2b5Smckusick #define QUOTE	0200
541c09f2b5Smckusick 
551c09f2b5Smckusick #define EOF	0
561c09f2b5Smckusick #define NL	'\n'
571c09f2b5Smckusick #define SP	' '
581c09f2b5Smckusick #define LQ	'`'
591c09f2b5Smckusick #define RQ	'\''
601c09f2b5Smckusick #define MINUS	'-'
611c09f2b5Smckusick #define COLON	':'
62