Go to the documentation of this file.
4 #define FB_NEWLINE "\r\n"
5 #define FB_NEWLINE_WSTR _LC("\r\n")
8 #define FB_BINARY_NEWLINE "\r\n"
9 #define FB_BINARY_NEWLINE_WSTR _LC("\r\n")
11 #define FB_LL_FMTMOD "ll"
13 #define FB_CONSOLE_MAXPAGES 8
15 #define FB_DYLIB void*
20 #define fseeko(stream, offset, whence) fseek(stream, offset, whence)
21 #define ftello(stream) ftell(stream)
23 #define FB_COLOR_BLACK (0)
24 #define FB_COLOR_BLUE (1)
25 #define FB_COLOR_GREEN (2)
26 #define FB_COLOR_CYAN (3)
27 #define FB_COLOR_RED (4)
28 #define FB_COLOR_MAGENTA (5)
29 #define FB_COLOR_BROWN (6)
30 #define FB_COLOR_WHITE (7)
31 #define FB_COLOR_GREY (8)
32 #define FB_COLOR_LBLUE (9)
33 #define FB_COLOR_LGREEN (10)
34 #define FB_COLOR_LCYAN (11)
35 #define FB_COLOR_LRED (12)
36 #define FB_COLOR_LMAGENTA (13)
37 #define FB_COLOR_YELLOW (14)
38 #define FB_COLOR_BWHITE (15)
70 #define lock_var(var) fb_dos_lock_data( (void *)&(var), sizeof(var) )
71 #define lock_array(array) fb_dos_lock_data( (void *)(array), sizeof(array) )
72 #define lock_proc(proc) fb_dos_lock_code( proc, (unsigned) end_##proc - (unsigned) proc )
73 #define lock_data(start, end) fb_dos_lock_data( (&start), (const char *)(&end) - (const char *)(&start) )
74 #define lock_code(start, end) fb_dos_lock_code( (start), (const char *)(end) - (const char *)(start) )
76 #define unlock_var(var) fb_dos_unlock_data( (void *)&(var), sizeof(var) )
77 #define unlock_array(array) fb_dos_unlock_data( (void *)(array), sizeof(array) )
78 #define unlock_proc(proc) fb_dos_unlock_code( proc, (unsigned) end_##proc - (unsigned) proc )
79 #define unlock_data(start, end) fb_dos_unlock_data( (&start), (const char *)(&end) - (const char *)(&start) )
80 #define unlock_code(start, end) fb_dos_unlock_code( (start), (const char *)(end) - (const char *)(start) )
83 #define END_OF_FUNCTION(proc) void end_##proc (void) { }
84 #define END_OF_STATIC_FUNCTION(proc) static void end_##proc (void) { }
86 #define KB_PRESS 0x00000001
87 #define KB_REPEAT 0x00000002
88 #define KB_SHIFT 0x00000004
89 #define KB_CTRL 0x00000008
90 #define KB_ALT 0x00000010
91 #define KB_CAPSLOCK 0x00000020
92 #define KB_NUMLOCK 0x00000040
93 #define KB_EXTENDED 0x00000080
95 void fb_hFarMemSet (
unsigned short selector,
unsigned long dest,
unsigned char char_to_set,
size_t bytes );
96 void fb_hFarMemSetW(
unsigned short selector,
unsigned long dest,
unsigned short word_to_set,
size_t words );