356 #ifndef WDBII_H #define WDBII_H #include "mapview.h" #define SHORTFLAG 0x4000 #define CBD_MAGIC 0x20770002 /* #define CBD_MAGIC 0x20770033 */ #define BIT32 int #define BIT16 short typedef struct { BIT32 magic; /* Magic number */ BIT32 dictaddr; /* Offset of segment dictionary in file */ BIT32 segcount; /* Number of segments in file */ BIT32 segsize; /* Size of segment dictionary */ BIT32 segmax; /* Size of largest segment's strokes, /2 */ BIT32 fill[(40 / sizeof (BIT32)) - 5]; /* Filler */ } CBDHEAD; typedef struct { BIT32 segid; BIT32 maxlat, minlat, maxlon, minlon; BIT32 absaddr; BIT16 nbytes; BIT16 rank; } SEGDICT; typedef struct { BIT32 orgx, orgy; BIT32 id; BIT16 nstrokes; BIT16 dummy; } SEGBUF; MAP *loadwdbii(char *fname); #endif . 0