Annotation of researchv9/X11/src/X.V11R1/fonts/compiler/fc.h, revision 1.1

1.1     ! root        1: #define MIN(a,b) ((a)>(b)?(b):(a))
        !             2: #define MAX(a,b) ((a)>(b)?(a):(b))
        !             3: 
        !             4: typedef struct _GlyphMap {
        !             5:     char       *bits;
        !             6:     int                h;
        !             7:     int                w;
        !             8:     int                widthBytes;
        !             9: } GlyphMap;
        !            10: 
        !            11: /*
        !            12:  * a structure to hold all the pointers to make it easy to pass them all
        !            13:  * around. Much like the FONT structure in the server.
        !            14:  */
        !            15: 
        !            16: typedef struct _TempFont {
        !            17:     FontInfoPtr pFI;
        !            18:     CharInfoPtr pCI;
        !            19:     unsigned char *pGlyphs;
        !            20:     FontPropPtr pFP;
        !            21: } TempFont; /* not called font since collides with type in X.h */
        !            22: 
        !            23: #ifdef vax
        !            24: 
        !            25: #      define DEFAULTGLPAD     1;              /* default padding for glyphs */
        !            26: #      define DEFAULTBITORDER  LSBFirst;       /* default bitmap bit order */
        !            27: 
        !            28: #else
        !            29: # ifdef sun
        !            30: 
        !            31: #      define DEFAULTGLPAD     4;              /* default padding for glyphs */
        !            32: #      define DEFAULTBITORDER  MSBFirst;       /* default bitmap bit order */
        !            33: 
        !            34: # else
        !            35: #  ifdef apollo
        !            36: 
        !            37: #      define DEFAULTGLPAD     2;              /* default padding for glyphs */
        !            38: #      define DEFAULTBITORDER  MSBFirst;       /* default bitmap bit order */
        !            39: 
        !            40: #  else
        !            41: #   ifdef ibm032
        !            42: 
        !            43: #      define DEFAULTGLPAD     1;              /* default padding for glyphs */
        !            44: #      define DEFAULTBITORDER  MSBFirst;       /* default bitmap bit order */
        !            45: 
        !            46: #   else
        !            47: #      define DEFAULTGLPAD     1;              /* default padding for glyphs */
        !            48: #      define DEFAULTBITORDER  MSBFirst;       /* default bitmap bit order */
        !            49: #      define UNSPECIFIED
        !            50: 
        !            51: #   endif
        !            52: #  endif
        !            53: # endif
        !            54: #endif
        !            55: 
        !            56: #define GLWIDTHBYTESPADDED(bits,nbytes) \
        !            57:        ((nbytes) == 1 ? (((bits)+7)>>3)        /* pad to 1 byte */ \
        !            58:        :(nbytes) == 2 ? ((((bits)+15)>>3)&~1)  /* pad to 2 bytes */ \
        !            59:        :(nbytes) == 4 ? ((((bits)+31)>>3)&~3)  /* pad to 4 bytes */ \
        !            60:        :(nbytes) == 8 ? ((((bits)+63)>>3)&~7)  /* pad to 8 bytes */ \
        !            61:        : 0)
        !            62: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.