Update skipped files in previous commit
git-svn-id: svn://kolibrios.org@9766 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
|
||||
This is adapded thunk for console.obj sys library
|
||||
.h is equal to svn:\programs\develop\libraries\console\console_en.txt
|
||||
.h is equal to svn:\programs\develop\libraries\console\console_en.txt
|
||||
|
||||
Adapted for tcc by Siemargl, 2016
|
||||
|
||||
@@ -15,19 +14,19 @@ Adapted for tcc by Siemargl, 2016
|
||||
console.obj exports the following functions
|
||||
*/
|
||||
|
||||
typedef unsigned int dword; /* 32-bit unsigned integer */
|
||||
typedef unsigned int dword; /* 32-bit unsigned integer */
|
||||
typedef unsigned short word; /* 16-bit unsigned integer */
|
||||
|
||||
#define CON_WINDOW_CLOSED 0x200
|
||||
#define CON_COLOR_BLUE 0x01
|
||||
#define CON_COLOR_GREEN 0x02
|
||||
#define CON_COLOR_RED 0x04
|
||||
#define CON_COLOR_BRIGHT 0x08
|
||||
#define CON_COLOR_BLUE 0x01
|
||||
#define CON_COLOR_GREEN 0x02
|
||||
#define CON_COLOR_RED 0x04
|
||||
#define CON_COLOR_BRIGHT 0x08
|
||||
/* background color */
|
||||
|
||||
#define CON_BGR_BLUE 0x10
|
||||
#define CON_BGR_GREEN 0x20
|
||||
#define CON_BGR_RED 0x40
|
||||
#define CON_BGR_BLUE 0x10
|
||||
#define CON_BGR_GREEN 0x20
|
||||
#define CON_BGR_RED 0x40
|
||||
#define CON_BGR_BRIGHT 0x80
|
||||
/* output controls */
|
||||
|
||||
@@ -35,25 +34,25 @@ typedef unsigned short word; /* 16-bit unsigned integer */
|
||||
|
||||
extern int _FUNC(con_init)(void);
|
||||
extern int _FUNC(con_init_opt)(dword wnd_width, dword wnd_height, dword scr_width, dword scr_height, const char* title);
|
||||
extern void __stdcall _FUNC((*con_exit))(int bCloseWindow);
|
||||
extern void __stdcall _FUNC((*con_set_title))(const char* title);
|
||||
extern void __stdcall _FUNC((*con_write_asciiz))(const char* str);
|
||||
extern void __stdcall _FUNC((*con_write_string))(const char* str, dword length);
|
||||
extern void __stdcall _FUNC((*con_exit))(int bCloseWindow);
|
||||
extern void __stdcall _FUNC((*con_set_title))(const char* title);
|
||||
extern void __stdcall _FUNC((*con_write_asciiz))(const char* str);
|
||||
extern void __stdcall _FUNC((*con_write_string))(const char* str, dword length);
|
||||
extern int __cdecl _FUNC((*con_printf))(const char* format, ...);
|
||||
extern dword __stdcall _FUNC((*con_get_flags))(void);
|
||||
extern dword __stdcall _FUNC((*con_set_flags))(dword new_flags);
|
||||
extern int __stdcall _FUNC((*con_get_font_height))(void);
|
||||
extern int __stdcall _FUNC((*con_get_cursor_height))(void);
|
||||
extern int __stdcall _FUNC((*con_set_cursor_height))(int new_height);
|
||||
extern int __stdcall _FUNC((*con_getch))(void);
|
||||
extern word __stdcall _FUNC((*con_getch2))(void);
|
||||
extern int __stdcall _FUNC((*con_kbhit))(void);
|
||||
extern char* __stdcall _FUNC((*con_gets))(char* str, int n);
|
||||
typedef int __stdcall _FUNC(* con_gets2_callback)(int keycode, char** pstr, int* pn, int* ppos);
|
||||
extern char* __stdcall _FUNC((*con_gets2))(con_gets2_callback callback, char* str, int n);
|
||||
extern void __stdcall _FUNC((*con_cls))();
|
||||
extern void __stdcall _FUNC((*con_get_cursor_pos))(int* px, int* py);
|
||||
extern void __stdcall _FUNC((*con_set_cursor_pos))(int x, int y);
|
||||
extern dword __stdcall _FUNC((*con_get_flags))(void);
|
||||
extern dword __stdcall _FUNC((*con_set_flags))(dword new_flags);
|
||||
extern int __stdcall _FUNC((*con_get_font_height))(void);
|
||||
extern int __stdcall _FUNC((*con_get_cursor_height))(void);
|
||||
extern int __stdcall _FUNC((*con_set_cursor_height))(int new_height);
|
||||
extern int __stdcall _FUNC((*con_getch))(void);
|
||||
extern word __stdcall _FUNC((*con_getch2))(void);
|
||||
extern int __stdcall _FUNC((*con_kbhit))(void);
|
||||
extern char* __stdcall _FUNC((*con_gets))(char* str, int n);
|
||||
typedef int __stdcall _FUNC (*con_gets2_callback)(int keycode, char** pstr, int* pn, int* ppos);
|
||||
extern char* __stdcall _FUNC((*con_gets2))(con_gets2_callback callback, char* str, int n);
|
||||
extern void __stdcall _FUNC((*con_cls))();
|
||||
extern void __stdcall _FUNC((*con_get_cursor_pos))(int* px, int* py);
|
||||
extern void __stdcall _FUNC((*con_set_cursor_pos))(int x, int y);
|
||||
extern int _FUNC(__con_is_load);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user