Commit | Line | Data |
---|---|---|
46e39dfe GM |
1 | #define settimer(x) clocks.x = clocks.system++ |
2 | ||
3 | #if !defined(TN3270) | |
4 | ||
115a5494 | 5 | #define ExitString(s,r) { fprintf(stderr, s); exit(r); } |
46e39dfe GM |
6 | #define Exit(x) exit(x) |
7 | #define SetIn3270() | |
8 | ||
9 | #endif /* !defined(TN3270) */ | |
10 | ||
115a5494 | 11 | #define NETADD(c) { *netoring.send = c; ring_added(&netoring, 1); } |
46e39dfe | 12 | #define NET2ADD(c1,c2) { NETADD(c1); NETADD(c2); } |
115a5494 GM |
13 | #define NETBYTES() (ring_unsent_count(&netoring)) |
14 | #define NETROOM() (ring_empty_count(&netoring)) | |
46e39dfe | 15 | |
115a5494 GM |
16 | #define TTYADD(c) if (!(SYNCHing||flushout)) { \ |
17 | *ttyoring.send = c; \ | |
18 | ring_added(&ttyoring, 1); \ | |
19 | } | |
20 | #define TTYBYTES() (ring_unsent_count(&ttyoring)) | |
21 | #define TTYROOM() (ring_empty_count(&ttyoring)) | |
46e39dfe GM |
22 | |
23 | /* Various modes */ | |
24 | #define MODE_LINE(m) (modelist[m].modetype & LINE) | |
25 | #define MODE_LOCAL_CHARS(m) (modelist[m].modetype & LOCAL_CHARS) | |
26 | #define MODE_LOCAL_ECHO(m) (modelist[m].modetype & LOCAL_ECHO) | |
27 | #define MODE_COMMAND_LINE(m) (modelist[m].modetype & COMMAND_LINE) | |
28 | ||
29 | #define LOCAL_CHARS 0x01 /* Characters processed locally */ | |
30 | #define LINE 0x02 /* Line-by-line mode of operation */ | |
31 | #define LOCAL_ECHO 0x04 /* Echoing locally */ | |
32 | #define COMMAND_LINE 0x08 /* Command line mode */ |