Rev 169 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 169 | Rev 215 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef mesys_h |
1 | #ifndef mesys_h |
2 | #define mesys_h |
2 | #define mesys_h |
3 | #ifdef GNUC |
3 | #ifdef GNUC |
4 | #define stdcall __stdcall |
4 | #define stdcall __stdcall |
- | 5 | #define cdecl __cdecl |
|
5 | #else |
6 | #else |
6 | #define stdcall __attribute__ ((__stdcall)) |
7 | #define stdcall __attribute__ ((__stdcall)) |
- | 8 | #define cdecl __attribute__ ((__cdecl)) |
|
7 | #endif |
9 | #endif |
- | 10 | ||
- | 11 | typedef unsigned long dword; |
|
- | 12 | typedef unsigned char byte; |
|
- | 13 | typedef unsigned short word; |
|
- | 14 | ||
8 | extern void stdcall _msys_draw_window(int xcoord,int ycoord, int xsize, |
15 | extern void stdcall _msys_draw_window(int xcoord,int ycoord, int xsize, |
9 | int ysize,int workcolor,int type, |
16 | int ysize,int workcolor,int type, |
10 | int captioncolor,int windowtype,int bordercolor); |
17 | int captioncolor,int windowtype,int bordercolor); |
11 | extern int stdcall _msys_read_file(char* filename,int fileoffset,int size,void* data, |
18 | extern int stdcall _msys_read_file(char* filename,int fileoffset,int size,void* data, |
12 | int* filesize); |
19 | int* filesize); |
Line 93... | Line 100... | ||
93 | extern void* stdcall _msys_start_thread(void (* func_ptr)(void),int stack_size,int* pid); |
100 | extern void* stdcall _msys_start_thread(void (* func_ptr)(void),int stack_size,int* pid); |
94 | extern void stdcall _msys_window_redraw(int status); |
101 | extern void stdcall _msys_window_redraw(int status); |
95 | extern void* malloc(int); |
102 | extern void* malloc(int); |
96 | extern void free(void*); |
103 | extern void free(void*); |
97 | extern void* realloc(void*,int); |
104 | extern void* realloc(void*,int); |
- | 105 | ||
- | 106 | extern dword* stdcall _msys_cofflib_load(char* name); |
|
- | 107 | extern char* stdcall _msys_cofflib_getproc(void* exp,char* sz_name); |
|
- | 108 | ||
98 | #endif |
109 | #endif |