Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / misc / fep / patches / patch-ad
blob8d3a834893512771f51196f8e430926bae9fad69
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
5 @@ -6 +6 @@
6 -#endif lint
7 +#endif /* lint */
8 @@ -7,3 +7,3 @@
9  
10 -#define        MAXCOMLEN               512     /* maximum command length */
11 +#define        MAXCMDLEN               512     /* maximum command length */
12  #define MAXARGS                        64      /* maximum number of arguments */
13 @@ -31,21 +31,21 @@
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)))
17 -#else KANJI
18 +#else /* KANJI */
19  # define isctlchar(c)  (c && (!(c&0140) || c=='\177'))
20  # define iswordchar(c) (isalnum(c) || iscntrl(c))
21  # define isWordchar(c) ((c) && !isspace((c)))
22 -#endif KANJI
23 +#endif /* KANJI */
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)
39  /*
40   * Type of character
41 @@ -53,17 +53,17 @@
42  #ifdef KANJI
43  # define CHAR          unsigned char
44  # define CHARMASK      0377
45 -#else KANJI
46 +#else /* KANJI */
47  # define CHAR          char
48  # define CHARMASK      0177
49 -#endif KANJI
50 +#endif /* KANJI */
52  /*
53   * Only one machine I know alloca() works is vax.
54   */
55  #ifdef vax
56  # define ALLOCA
57 -#endif vax
58 +#endif /* vax */
60  /*
61   * Typedef's