1 $NetBSD: patch-ad,v 1.6 2006/01/03 18:16:10 joerg Exp $
3 --- fep_defs.h.orig 1993-05-10 01:23:33.000000000 -0400
4 +++ fep_defs.h 2005-12-10 16:59:27.000000000 -0500
10 -#define MAXCOMLEN 512 /* maximum command length */
11 +#define MAXCMDLEN 512 /* maximum command length */
12 #define MAXARGS 64 /* maximum number of arguments */
14 # define isctlchar(c) (c && !iskanji(c) && (!(c&0140) || c=='\177'))
15 # define iswordchar(c) (c && (iskanji(c) || isalnum(c) || iscntrl(c)))
16 # define isWordchar(c) ((c) && !isspace((c)))
19 # define isctlchar(c) (c && (!(c&0140) || c=='\177'))
20 # define iswordchar(c) (isalnum(c) || iscntrl(c))
21 # define isWordchar(c) ((c) && !isspace((c)))
24 #define unctl(c) (((c)=='\177') ? '?' : ((c) >= 040) ? (c) : (c)|0100)
25 #define toctrl(c) ((c)&~0100)
26 #define ctrl(c) ((c)&037)
28 -#define INDIRECTED (1<<(sizeof(char*)*8-1))
29 +#define INDIRECTED (((intptr_t)1)<<(sizeof(char*)*8-1))
30 /* this is actually 0x80000000 on 32 bit machine,
31 that addresses kernel address space */
32 -#define isIndirect(f) ((u_int)(f)&(u_int)INDIRECTED)
33 -#define setIndirect(f) (FUNC)((u_int)(f)|(u_int)INDIRECTED)
34 -#define maskIndirect(f) (FUNC *)((u_int)(f)&~(u_int)INDIRECTED)
35 +#define isIndirect(f) ((intptr_t)(f)&(intptr_t)INDIRECTED)
36 +#define setIndirect(f) (FUNC)((intptr_t)(f)|(intptr_t)INDIRECTED)
37 +#define maskIndirect(f) (FUNC *)((intptr_t)(f)&~(intptr_t)INDIRECTED)
43 # define CHAR unsigned char
44 # define CHARMASK 0377
48 # define CHARMASK 0177
53 * Only one machine I know alloca() works is vax.