VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/conio.h@ 53206

最後變更 在這個檔案從53206是 53201,由 vboxsync 提交於 10 年 前

Devices/Main: vmsvga updates

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.0 KB
 
1/*
2 * Console I/O definitions
3 *
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
7 */
8#ifndef __WINE_CONIO_H
9#define __WINE_CONIO_H
10
11#include <crtdefs.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17char* __cdecl _cgets(char*);
18int __cdecl _cprintf(const char*,...);
19int __cdecl _cputs(const char*);
20int __cdecl _cscanf(const char*,...);
21int __cdecl _getch(void);
22int __cdecl _getche(void);
23int __cdecl _kbhit(void);
24int __cdecl _putch(int);
25int __cdecl _ungetch(int);
26
27#ifdef _M_IX86
28int __cdecl _inp(unsigned short);
29__msvcrt_ulong __cdecl _inpd(unsigned short);
30unsigned short __cdecl _inpw(unsigned short);
31int __cdecl _outp(unsigned short, int);
32__msvcrt_ulong __cdecl _outpd(unsigned short, __msvcrt_ulong);
33unsigned short __cdecl _outpw(unsigned short, unsigned short);
34#endif
35
36#ifdef __cplusplus
37}
38#endif
39
40
41static inline char* cgets(char* str) { return _cgets(str); }
42static inline int cputs(const char* str) { return _cputs(str); }
43static inline int getch(void) { return _getch(); }
44static inline int getche(void) { return _getche(); }
45static inline int kbhit(void) { return _kbhit(); }
46static inline int putch(int c) { return _putch(c); }
47static inline int ungetch(int c) { return _ungetch(c); }
48#ifdef _M_IX86
49static inline int inp(unsigned short i) { return _inp(i); }
50static inline unsigned short inpw(unsigned short i) { return _inpw(i); }
51static inline int outp(unsigned short i, int j) { return _outp(i, j); }
52static inline unsigned short outpw(unsigned short i, unsigned short j) { return _outpw(i, j); }
53#endif
54
55#if defined(__GNUC__) && (__GNUC__ < 4)
56extern int __cdecl cprintf(const char*,...) __attribute__((alias("_cprintf"),format(printf,1,2)));
57extern int __cdecl cscanf(const char*,...) __attribute__((alias("_cscanf"),format(scanf,1,2)));
58#else
59#define cprintf _cprintf
60#define cscanf _cscanf
61#endif /* __GNUC__ */
62
63#endif /* __WINE_CONIO_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette