Back to index

tetex-bin  3.0
Xstuff.h
Go to the documentation of this file.
00001 #ifndef NULL
00002 #define NULL 0
00003 #endif
00004 
00005 #ifndef XMD_H
00006 #define XMD_H 1
00007 
00008 #include "types.h"
00009 
00010 /*
00011  * Bitfield suffixes for the protocol structure elements, if you
00012  * need them.  Note that bitfields are not guarranteed to be signed
00013  * (or even unsigned) according to ANSI C.
00014  */
00015 #ifdef WORD64
00016 #define B32 :32
00017 #define B16 :16
00018 #else
00019 #define B32
00020 #define B16
00021 #endif
00022 
00023 typedef struct {
00024     SHORT leftSideBearing B16,
00025          rightSideBearing B16,
00026          characterWidth B16,
00027          ascent B16,
00028          descent B16;
00029     USHORT attributes;
00030 } xCharInfo;
00031 #endif /*  XMD_H */
00032 
00033 #ifndef _FS_PROTO_H_
00034 #define _FS_PROTO_H_
00035 
00036 typedef struct {
00037     USHORT    x_resolution B16;
00038     USHORT    y_resolution B16;
00039     USHORT    point_size B16;
00040 }          fsResolution;
00041 
00042 #endif /* _FS_PROTO_H_ */