allow "for i do echo $i; done"
[unix-history] / usr / src / bin / sh / shell.h
CommitLineData
f406eb40
KB
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * %sccs.include.redist.c%
9 *
b56bda55 10 * @(#)shell.h 5.6 (Berkeley) %G%
f406eb40
KB
11 */
12
13/*
14 * The follow should be set to reflect the type of system you have:
15 * JOBS -> 1 if you have Berkeley job control, 0 otherwise.
16 * SYMLINKS -> 1 if your system includes symbolic links, 0 otherwise.
f406eb40
KB
17 * SHORTNAMES -> 1 if your linker cannot handle long names.
18 * define BSD if you are running 4.2 BSD or later.
19 * define SYSV if you are running under System V.
78bb4190
MT
20 * define DEBUG=1 to compile in debugging (set global "debug" to turn on)
21 * define DEBUG=2 to compile in and turn on debugging.
f406eb40
KB
22 *
23 * When debugging is on, debugging info will be written to $HOME/trace and
24 * a quit signal will generate a core dump.
25 */
26
27
28#define JOBS 1
29#define SYMLINKS 1
b56bda55
MT
30#ifndef BSD
31#define BSD 1
32#endif
78bb4190 33#define DEBUG 1
b775bf58
KB
34
35#ifdef __STDC__
78bb4190 36typedef void *pointer;
f406eb40
KB
37#ifndef NULL
38#define NULL (void *)0
39#endif
40#else /* not __STDC__ */
78bb4190 41typedef char *pointer;
f406eb40
KB
42#ifndef NULL
43#define NULL 0
44#endif
78bb4190 45#endif /* not __STDC__ */
f406eb40
KB
46#define STATIC /* empty */
47#define MKINIT /* empty */
48
78bb4190
MT
49#include <sys/cdefs.h>
50
f406eb40
KB
51extern char nullstr[1]; /* null string */
52
53
54#ifdef DEBUG
55#define TRACE(param) trace param
56#else
57#define TRACE(param)
58#endif