kolibri-libc
- Added new headers git-svn-id: svn://kolibrios.org@8745 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a749f672ce
commit
57e9ef6e7d
62
programs/develop/libraries/kolibri-libc/include/conio.h
Normal file
62
programs/develop/libraries/kolibri-libc/include/conio.h
Normal file
@ -0,0 +1,62 @@
|
||||
/*
|
||||
|
||||
This is adapded thunk for console.obj sys library
|
||||
.h is equal to svn:\programs\develop\libraries\console\console_en.txt
|
||||
|
||||
Adapted for tcc by Siemargl, 2016
|
||||
|
||||
*/
|
||||
#ifndef _CONIO_H_
|
||||
#define _CONIO_H_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#define cdecl __attribute__ ((cdecl))
|
||||
#define stdcall __attribute__ ((stdcall))
|
||||
|
||||
/*
|
||||
console.obj exports the following functions
|
||||
*/
|
||||
|
||||
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
|
||||
/* background color */
|
||||
|
||||
#define CON_BGR_BLUE 0x10
|
||||
#define CON_BGR_GREEN 0x20
|
||||
#define CON_BGR_RED 0x40
|
||||
#define CON_BGR_BRIGHT 0x80
|
||||
/* output controls */
|
||||
|
||||
#define CON_IGNORE_SPECIALS 0x100
|
||||
|
||||
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 int _FUNC(__con_is_load);
|
||||
|
||||
#endif
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#define _LIBC_VERSION 8743
|
||||
#define _LIBC_VERSION 8745
|
||||
|
||||
extern unsigned _FUNC(_libc_get_version)();
|
||||
|
||||
|
11
programs/develop/libraries/kolibri-libc/include/sys/dir.h
Normal file
11
programs/develop/libraries/kolibri-libc/include/sys/dir.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef _DIR_H_
|
||||
#define _DIR_H_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
extern char* _FUNC(getcwd)(char *buf, unsigned size);
|
||||
extern void _FUNC(setcwd)(const char* cwd);
|
||||
extern int _FUNC(rmdir)(const char* dir);
|
||||
extern int _FUNC(mkdir)(const char* dir);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user