Rev 5283 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5276 | ZblCoder | 1 | |
2 | |||
3 | |||
4 | #include "kosFile.h" |
||
5 | #include "mcsmemm.H" |
||
5284 | ZblCoder | 6 | |
5276 | ZblCoder | 7 | |
8 | |||
9 | |||
10 | |||
11 | #define max(a,b) (((a)>(b))?(a):(b)) |
||
12 | |||
13 | |||
14 | |||
15 | #define ERROR_END -2 |
||
16 | |||
17 | |||
18 | |||
19 | |||
20 | typedef int DWORD; |
||
21 | |||
22 | |||
23 | extern char debuf[50]; |
||
24 | |||
25 | |||
26 | |||
27 | |||
28 | { |
||
29 | double x, y; |
||
30 | } TCoord; |
||
31 | |||
32 | |||
33 | { |
||
34 | Dword attrib; |
||
35 | Dword name_type; |
||
36 | Dword create_time; |
||
37 | Dword create_date; |
||
38 | Dword access_time; |
||
39 | Dword access_date; |
||
40 | Dword modify_time; |
||
41 | Dword modify_date; |
||
42 | Dword size_low; |
||
43 | Dword size_high; |
||
44 | }; |
||
45 | |||
46 | |||
47 | Dword kos_GetActiveSlot(); |
||
48 | Dword kos_GetSkinHeight(); |
||
49 | Dword kos_GetSpecialKeyState(); |
||
50 | void kos_GetMouseStateWnd( Dword & buttons, int & cursorX, int & cursorY ); |
||
51 | void kos_DrawLine( Word x1, Word y1, Word x2, Word y2, Dword colour, Dword invert); |
||
52 | void DrawRegion(Dword x,Dword y,Dword width,Dword height,Dword color1); |
||
53 | int atoi(const char* string); |
||
54 | void kos_GetScrollInfo(int &vert, int &hor); |
||
55 | |||
56 | |||
57 | |||
58 | Dword kos_GetActiveSlot(); |
||
59 | Dword kos_GetSkinHeight(); |
||
60 | Dword kos_GetSpecialKeyState(); |
||
61 | |||
62 | |||
63 | |||
64 | double cos(double x); |
||
65 | double sin(double x); |
||
66 | bool isalpha(char c); |
||
67 | double convert(char *s, int *len=NULL); |
||
68 | void format( char *Str, int len, char* Format, ... ); |
||
69 | |||
70 | |||
71 | |||
72 | |||
73 | void settextstyle( int a1, int a2, int a3); |
||
74 | |||
75 | |||
76 | |||
77 | double textheight( char *s, int len); |
||
78 | void setcolor( DWORD color); |
||
79 | void unsetcolor(HDC hdc); |
||
80 | void rectangle( int x1, int y1, int x2, int y2); |
||
81 | |||
82 | |||
83 | { |
||
84 | unsigned p00 ; |
||
85 | unsigned p04 ; |
||
86 | unsigned p08 ; |
||
87 | unsigned p12 ; |
||
88 | unsigned p16 ; |
||
89 | char p20 ; |
||
90 | char *p21 ; |
||
91 | } kol_struct70 ; |
||
92 | |||
93 | |||
94 | |||
95 | { |
||
96 | unsigned p00 ; |
||
97 | char p04 ; |
||
98 | char p05[3] ; |
||
99 | unsigned p08 ; |
||
100 | unsigned p12 ; |
||
101 | unsigned p16 ; |
||
102 | unsigned p20 ; |
||
103 | unsigned p24 ; |
||
104 | unsigned p28 ; |
||
105 | unsigned p32[2] ; |
||
106 | unsigned p40 ; |
||
107 | } kol_struct_BDVK ; |
||
108 | |||
109 | |||
110 | { |
||
111 | char *name ; |
||
112 | void *data ; |
||
113 | } kol_struct_import ; |
||
114 | |||
115 | |||
116 | |||
117 | |||
118 | void* kol_cofflib_procload (kol_struct_import *imp, char *name); |
||
119 | unsigned kol_cofflib_procnum (kol_struct_import *imp); |
||
120 | void kol_cofflib_procname (kol_struct_import *imp, char *name, unsigned n); |
||
121 | int strcmp(const char* string1, const char* string2); |
||
122 | |||
123 | |||
124 | double atof(char *s); |
||
125 | |||
126 | |||
127 | |||
128 | double id(int x); |
||
129 | |||
130 | |||
131 | double arccos(double x); |
||
132 | double sqrtd(double x); |
||
133 | double atan2(double x, double y); |
||
134 | int roundInt(double x);(b))?(a):(b)) |
||
135 | #define> |