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
  • in line 45
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
LONGDISP defined in line 9; never used
MSKWORD defined in line 11; used 1 times
RFC defined in line 10; never used
SDIM defined in line 7; never used
SYSCNV defined in line 13; never used

Defined macros

ADVPTR defined in line 27; never used
BMWSIZ defined in line 33; used 1 times
  • in line 35
EXTSIGN defined in line 63; used 4 times
FALSE defined in line 22; used 1 times
FNAMLEN defined in line 42; never used
GHASHIX defined in line 40; never used
GLYWSIZ defined in line 37; never used
GPRECOMP defined in line 38; never used
GPREHASH defined in line 39; never used
GVWSIZ defined in line 34; used 1 times
  • in line 37
MLIBSIZ defined in line 30; never used
MLIWSIZ defined in line 29; used 1 times
  • in line 31
MSKHIGH defined in line 17; never used
MSKSHFT defined in line 16; never used
MSKWSIZ defined in line 31; used 2 times
NILIDX defined in line 20; never used
NILPTR defined in line 18; never used
OOPTR defined in line 19; never used
P defined in line 61; never used
REG defined in line 25; never used
SMWSIZ defined in line 32; used 1 times
  • in line 34
TRUE defined in line 21; used 2 times
V defined in line 59; used 49 times
not defined in line 24; never used
v defined in line 60; used 22 times

Usage of this include

Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1543
Valid CSS Valid XHTML 1.0 Strict