Changeset View
Changeset View
Standalone View
Standalone View
head/bin/sh/shell.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
#define JOBS 1 | #define JOBS 1 | ||||
/* #define DEBUG 1 */ | /* #define DEBUG 1 */ | ||||
/* | /* | ||||
* Type of used arithmetics. SUSv3 requires us to have at least signed long. | * Type of used arithmetics. SUSv3 requires us to have at least signed long. | ||||
*/ | */ | ||||
typedef intmax_t arith_t; | typedef intmax_t arith_t; | ||||
#define ARITH_FORMAT_STR "%" PRIdMAX | #define ARITH_FORMAT_STR "%" PRIdMAX | ||||
#define strtoarith_t(nptr, endptr, base) (intmax_t)strtoumax(nptr, endptr, base) | |||||
#define ARITH_MIN INTMAX_MIN | #define ARITH_MIN INTMAX_MIN | ||||
#define ARITH_MAX INTMAX_MAX | #define ARITH_MAX INTMAX_MAX | ||||
typedef void *pointer; | typedef void *pointer; | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
extern char nullstr[1]; /* null string */ | extern char nullstr[1]; /* null string */ | ||||
#ifdef DEBUG | #ifdef DEBUG | ||||
#define TRACE(param) sh_trace param | #define TRACE(param) sh_trace param | ||||
#else | #else | ||||
#define TRACE(param) | #define TRACE(param) | ||||
#endif | #endif | ||||
#endif /* !SHELL_H_ */ | #endif /* !SHELL_H_ */ |