1 typedef enum _bool { false, true} bool;
\r
2 typedef unsigned char uchar;
\r
3 typedef unsigned short ushort;
\r
4 typedef unsigned int uint;
\r
5 typedef enum _color_8 { black, red, green, yellow,
\r
6 blue, pink, light_blue, white,
\r
7 gray, brown, dark_green, gold,
\r
8 navy_blue, purple, dark_cyan, dark_gray} color_8;
\r
11 #define srand(seed) (void) (rand_seed = (seed))
\r
12 extern unsigned int rand_seed;
\r
14 void api_putchar(uchar c);
\r
15 // hariboteOS:
\8cÝ
\8a·void api_putchar(int c);
\r
16 void api_putstr(uchar *s);
\r
17 // hariboteOS:
\8cÝ
\8a·void api_putstr0(char *s);
\r
19 // hariboteOS:
\8cÝ
\8a·void api_end(void);
\r
20 uint api_openwin(uchar *buf, int xsize, int ysize, int col_inv, uchar *title);
\r
21 // hariboteOS:
\8cÝ
\8a·int api_openwin(char *buf, int xsiz, int ysiz, int col_inv, char *title);
\8cÝ
\8a·
\r
22 void api_putstrwin(uint win, int x, int y, color_8 col, int len, uchar *str);
\r
23 // hariboteOS:
\8cÝ
\8a·void api_putstrwin(int win, int x, int y, int col, int len, char *str);
\r
24 void api_boxfilwin(uint win, int x0, int y0, int x1, int y1, color_8 col);
\r
25 // hariboteOS:
\8cÝ
\8a·void api_boxfilwin(int win, int x0, int y0, int x1, int y1, int col);
\r
26 void api_initmalloc(void);
\r
27 // hariboteOS:
\8cÝ
\8a·void api_initmalloc(void);
\r
28 void *api_malloc(uint size);
\r
29 // hariboteOS:
\8cÝ
\8a·char *api_malloc(int size);
\r
30 void api_free(void *addr, uint size);
\r
31 // hariboteOS:
\8cÝ
\8a·void api_free(char *addr, int size);
\r
32 void api_point(uint win, int x, int y, color_8 col);
\r
33 // hariboteOS:
\8cÝ
\8a·void api_point(int win, int x, int y, int col);
\r
34 void api_refreshwin(uint win, int x0, int y0, int x1, int y1);
\r
35 // hariboteOS:
\8cÝ
\8a·void api_refreshwin(int win, int x0, int y0, int x1, int y1);
\r
36 void api_linewin(uint win, int x0, int y0, int x1, int y1, color_8 col);
\r
37 //void api_linewin(int win, int x0, int y0, int x1, int y1, int col);
\r
38 void api_closewin(uint win);
\r
39 // hariboteOS:
\8cÝ
\8a·void api_closewin(int win);
\r
40 int api_getkey(bool wait);
\r
41 // hariboteOS:
\8cÝ
\8a·int api_getkey(int mode);
\r
42 //int api_alloctimer(void);
\r
43 //void api_inittimer(int timer, int data);
\r
44 //void api_settimer(int timer, int time);
\r
45 //void api_freetimer(int timer);
\r
46 //void api_beep(int tone);
\r
47 //int api_fopen(char *fname);
\r
48 //void api_fclose(int fhandle);
\r
49 //void api_fseek(int fhandle, int offset, int mode);
\r
50 //int api_fsize(int fhandle, int mode);
\r
51 //int api_fread(char *buf, int maxsize, int fhandle);
\r
52 //int api_cmdline(char *buf, int maxsize);
\r
53 //int api_getlang(void);
\r