shell.h (119578) | shell.h (119746) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)shell.h 8.2 (Berkeley) 5/4/95 | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)shell.h 8.2 (Berkeley) 5/4/95 |
37 * $FreeBSD: head/bin/sh/shell.h 119578 2003-08-30 12:31:44Z schweikh $ | 37 * $FreeBSD: head/bin/sh/shell.h 119746 2003-09-04 18:28:42Z schweikh $ |
38 */ 39 40/* 41 * The follow should be set to reflect the type of system you have: 42 * JOBS -> 1 if you have Berkeley job control, 0 otherwise. 43 * define DEBUG=1 to compile in debugging (set global "debug" to turn on) 44 * define DEBUG=2 to compile in and turn on debugging. 45 * 46 * When debugging is on, debugging info will be written to $HOME/trace and 47 * a quit signal will generate a core dump. 48 */ 49 50 | 38 */ 39 40/* 41 * The follow should be set to reflect the type of system you have: 42 * JOBS -> 1 if you have Berkeley job control, 0 otherwise. 43 * define DEBUG=1 to compile in debugging (set global "debug" to turn on) 44 * define DEBUG=2 to compile in and turn on debugging. 45 * 46 * When debugging is on, debugging info will be written to $HOME/trace and 47 * a quit signal will generate a core dump. 48 */ 49 50 |
51#define JOBS 1 | 51#define JOBS 1 |
52/* #define DEBUG 1 */ 53 54/* 55 * Type of used arithmetics. SUSv3 requires us to have at least signed long. 56 */ 57typedef long arith_t; | 52/* #define DEBUG 1 */ 53 54/* 55 * Type of used arithmetics. SUSv3 requires us to have at least signed long. 56 */ 57typedef long arith_t; |
58#define strtoarith_t(nptr, endptr, base) strtol(nptr, endptr, base) 59#define atoarith_t(arg) strtol(arg, NULL, 0) 60#define ARITH_FORMAT_STR "%ld" | 58#define ARITH_FORMAT_STR "%ld" 59#define atoarith_t(arg) strtol(arg, NULL, 0) 60#define strtoarith_t(nptr, endptr, base) strtol(nptr, endptr, base) |
61 62typedef void *pointer; 63#define STATIC static | 61 62typedef void *pointer; 63#define STATIC static |
64#define MKINIT /* empty */ | 64#define MKINIT /* empty */ |
65 66#include <sys/cdefs.h> 67 68extern char nullstr[1]; /* null string */ 69 | 65 66#include <sys/cdefs.h> 67 68extern char nullstr[1]; /* null string */ 69 |
70 | |
71#ifdef DEBUG | 70#ifdef DEBUG |
72#define TRACE(param) sh_trace param | 71#define TRACE(param) sh_trace param |
73#else 74#define TRACE(param) 75#endif | 72#else 73#define TRACE(param) 74#endif |