ktcc: rollback to r9529
git-svn-id: svn://kolibrios.org@9558 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -11,6 +11,9 @@ Adapted for tcc by Siemargl, 2016
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#define cdecl __attribute__ ((cdecl))
|
||||
#define stdcall __attribute__ ((stdcall))
|
||||
|
||||
/*
|
||||
console.obj exports the following functions
|
||||
*/
|
||||
@@ -35,25 +38,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 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 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 int _FUNC(__con_is_load);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user