1:
2: /* basic typedefs & defines */
3: /* $Header: imPdefs.h,v 10.2 86/02/01 16:00:23 tony Rel $ */
4:
5: typedef short I16;
6: typedef short BDIM;
7: typedef char SDIM;
8: typedef unsigned short DISP;
9: typedef unsigned long LONGDISP;
10: typedef unsigned short RFC;
11: typedef unsigned short MSKWORD;
12: typedef unsigned short GLINK;
13: typedef unsigned short SYSCNV;
14: typedef unsigned char BYTE;
15:
16: #define MSKSHFT 4
17: #define MSKHIGH 15
18: #define NILPTR 0
19: #define OOPTR ((char *)0xFFFFFFFF)
20: #define NILIDX -1
21: #define TRUE 1
22: #define FALSE 0
23:
24: #define not ~
25: #define REG register
26:
27: #define ADVPTR(p,n) ((char *)p+n) /* advances pointer 'p' 'n' bytes */
28:
29: #define MLIWSIZ(w) ((w+15)>>4)
30: #define MLIBSIZ(w) ((w+7)>>3)
31: #define MSKWSIZ(w,h) (MLIWSIZ(w)*h)
32: #define SMWSIZ(p) MSKWSIZ(p->sgw,p->sgh)
33: #define BMWSIZ(p) MSKWSIZ(p->bgw,p->bgh)
34: #define GVWSIZ(t,p) (t==SMALL ? SGDWSIZ+SMWSIZ(((sgdims *)(p))) : \
35: BGDWSIZ+BMWSIZ(((bgdims *)(p))) \
36: )
37: #define GLYWSIZ(p) (GHWSIZ+GVWSIZ(p->gsize,(char *)(p)+GHBSIZ))
38: #define GPRECOMP(r,f) (((r<<14)|(f<<7)) % GHTLEN) /* not used by imPRESS */
39: #define GPREHASH(r,f) gprehtab[(r<<7)|f]
40: #define GHASHIX(rfc) gprehtab[(rfc>>7)&0777] + (rfc&0177)
41:
42: #define FNAMLEN 8
43:
44: typedef union { /******** DECODE PARAMETERS ***********/
45: BDIM pval; /* parameter value */
46: struct {
47: #ifdef XWIND
48: char loval;
49: char hival;
50: #else
51: char hival;
52: char loval;
53: #endif
54: }
55: pval2;
56: char *pptr; /* parameter address (w/input area) */
57: } parva; /**************************************/
58: parva param[10];
59: #define V(i) (param[i].pval)
60: #define v(i) (param[i].pval2.loval)
61: #define P(i) (param[i].pptr)
62: /* extend sign for an int */
63: #define EXTSIGN(n) if (v(n)<0) param[n].pval2.hival = 0377
Defined typedef's
BDIM
defined in line
6; used 1 times
BYTE
defined in line
14;
never used
DISP
defined in line
8;
never used
GLINK
defined in line
12;
never used
I16
defined in line
5;
never used
RFC
defined in line
10;
never used
SDIM
defined in line
7;
never used
Defined macros
FALSE
defined in line
22; used 1 times
OOPTR
defined in line
19;
never used
P
defined in line
61;
never used
REG
defined in line
25;
never used
TRUE
defined in line
21; used 2 times
V
defined in line
59; used 49 times
- in /usr/src/new/X/ximpv/decode.c line
152
- in /usr/src/new/X/ximpv/dofile.c line
46,
65-81(9),
87,
106-112(3),
133-138(3),
147-150(2),
162-173(8),
181-193(4),
201-205(2),
247,
267-268(2),
313,
398-399(2),
529-534(3),
547-551(6)
not
defined in line
24;
never used
v
defined in line
60; used 22 times
Usage of this include