39 |
/* Connection state */ |
/* Connection state */ |
40 |
typedef struct connection |
typedef struct connection |
41 |
{ |
{ |
42 |
|
/* User interface */ |
43 |
|
HWINDOW wnd; |
44 |
|
HBITMAP bmpcache[3][600]; |
45 |
|
FONT_GLYPH fontcache[12][256]; |
46 |
|
BLOB textcache[256]; |
47 |
|
uint8 deskcache[0x38400]; |
48 |
|
|
49 |
/* Parsing layer */ |
/* Parsing layer */ |
50 |
struct stream in; |
struct stream in; |
51 |
struct stream out; |
struct stream out; |
64 |
#define PUSH_LAYER(s,v,l) { s.v = s.offset; s.offset += l; } |
#define PUSH_LAYER(s,v,l) { s.v = s.offset; s.offset += l; } |
65 |
#define POP_LAYER(s,v) { s.offset = s.v; } |
#define POP_LAYER(s,v) { s.offset = s.v; } |
66 |
#define MARK_END(s) { s.end = s.offset; } |
#define MARK_END(s) { s.end = s.offset; } |
67 |
|
#define PRS_ERROR(s) (!(s)->error) |