FDOSTUI
FreeDOS Text User Interface
block.h
Go to the documentation of this file.
1 /*
2  BLOCK.H
3 
4  License CC0 PUBLIC DOMAIN
5 
6  To the extent possible under law, Mark J. Olesen has waived all copyright
7  and related or neighboring rights to FDOSTUI Library. This work is published
8  from: United States.
9 */
10 #ifndef __block_h__
11 
12 #include "box.h"
13 #include <stdlib.h>
14 #if defined(__WATCOMC__)
15 #include <malloc.h>
16 #endif
17 
18 #ifndef __FAR
19 # if defined(__FLAT__) || defined(__LARGE__)
20 # define __FAR
21 # else
22 # define __FAR __far
23 # endif
24 #endif
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 extern void __FAR*
32  struct box const*const i_box);
33 
34 extern void
36  void const __FAR* i_block,
37  struct box const*const i_box);
38 
39 extern void
41  void __FAR* i_block);
42 
43 #ifdef __FLAT__
44 # define block_free(_block) free((_block))
45 #else
46 # define block_free(_block) _ffree((_block))
47 #endif
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #define __block_h__
54 #endif
void block_free(void __FAR *i_block)
a rectanglular region
void block_write(void const __FAR *i_block, struct box const *const i_box)
write a block of screen memory
Definition: block.c:67
void __FAR * block_read(struct box const *const i_box)
read a block of screen memory
Definition: block.c:25
defines a rectangular region
Definition: box.h:12