$NetBSD: patch-ad,v 1.7 2006/01/17 21:23:01 kristerw Exp $ --- fep_defs.h.orig 1993-05-10 01:23:33.000000000 -0400 +++ fep_defs.h 2005-12-10 16:59:27.000000000 -0500 @@ -6 +6 @@ -#endif lint +#endif /* lint */ @@ -7,3 +7,3 @@ -#define MAXCOMLEN 512 /* maximum command length */ +#define MAXCMDLEN 512 /* maximum command length */ #define MAXARGS 64 /* maximum number of arguments */ @@ -31,21 +31,21 @@ # define isctlchar(c) (c && !iskanji(c) && (!(c&0140) || c=='\177')) # define iswordchar(c) (c && (iskanji(c) || isalnum(c) || iscntrl(c))) # define isWordchar(c) ((c) && !isspace((c))) -#else KANJI +#else /* KANJI */ # define isctlchar(c) (c && (!(c&0140) || c=='\177')) # define iswordchar(c) (isalnum(c) || iscntrl(c)) # define isWordchar(c) ((c) && !isspace((c))) -#endif KANJI +#endif /* KANJI */ #define unctl(c) (((c)=='\177') ? '?' : ((c) >= 040) ? (c) : (c)|0100) #define toctrl(c) ((c)&~0100) #define ctrl(c) ((c)&037) -#define INDIRECTED (1<<(sizeof(char*)*8-1)) +#define INDIRECTED (((intptr_t)1)<<(sizeof(char*)*8-1)) /* this is actually 0x80000000 on 32 bit machine, that addresses kernel address space */ -#define isIndirect(f) ((u_int)(f)&(u_int)INDIRECTED) -#define setIndirect(f) (FUNC)((u_int)(f)|(u_int)INDIRECTED) -#define maskIndirect(f) (FUNC *)((u_int)(f)&~(u_int)INDIRECTED) +#define isIndirect(f) ((intptr_t)(f)&(intptr_t)INDIRECTED) +#define setIndirect(f) (FUNC)((intptr_t)(f)|(intptr_t)INDIRECTED) +#define maskIndirect(f) (FUNC *)((intptr_t)(f)&~(intptr_t)INDIRECTED) /* * Type of character @@ -53,17 +53,17 @@ #ifdef KANJI # define CHAR unsigned char # define CHARMASK 0377 -#else KANJI +#else /* KANJI */ # define CHAR char # define CHARMASK 0177 -#endif KANJI +#endif /* KANJI */ /* * Only one machine I know alloca() works is vax. */ #ifdef vax # define ALLOCA -#endif vax +#endif /* vax */ /* * Typedef's