VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/msvcrt/conio.h@ 38147

Last change on this file since 38147 was 28475, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.43

  • Property svn:eol-style set to native
File size: 2.4 KB
Line 
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
9/*
10 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
11 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
12 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
13 * a choice of LGPL license versions is made available with the language indicating
14 * that LGPLv2 or any later version may be used, or where a choice of which version
15 * of the LGPL is applied is otherwise unspecified.
16 */
17
18#ifndef __WINE_CONIO_H
19#define __WINE_CONIO_H
20
21#include <crtdefs.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27char* __cdecl _cgets(char*);
28int __cdecl _cprintf(const char*,...);
29int __cdecl _cputs(const char*);
30int __cdecl _cscanf(const char*,...);
31int __cdecl _getch(void);
32int __cdecl _getche(void);
33int __cdecl _kbhit(void);
34int __cdecl _putch(int);
35int __cdecl _ungetch(int);
36
37#ifdef _M_IX86
38int __cdecl _inp(unsigned short);
39__msvcrt_ulong __cdecl _inpd(unsigned short);
40unsigned short __cdecl _inpw(unsigned short);
41int __cdecl _outp(unsigned short, int);
42__msvcrt_ulong __cdecl _outpd(unsigned short, __msvcrt_ulong);
43unsigned short __cdecl _outpw(unsigned short, unsigned short);
44#endif
45
46#ifdef __cplusplus
47}
48#endif
49
50
51static inline char* cgets(char* str) { return _cgets(str); }
52static inline int cputs(const char* str) { return _cputs(str); }
53static inline int getch(void) { return _getch(); }
54static inline int getche(void) { return _getche(); }
55static inline int kbhit(void) { return _kbhit(); }
56static inline int putch(int c) { return _putch(c); }
57static inline int ungetch(int c) { return _ungetch(c); }
58#ifdef _M_IX86
59static inline int inp(unsigned short i) { return _inp(i); }
60static inline unsigned short inpw(unsigned short i) { return _inpw(i); }
61static inline int outp(unsigned short i, int j) { return _outp(i, j); }
62static inline unsigned short outpw(unsigned short i, unsigned short j) { return _outpw(i, j); }
63#endif
64
65#if defined(__GNUC__) && (__GNUC__ < 4)
66extern int __cdecl cprintf(const char*,...) __attribute__((alias("_cprintf"),format(printf,1,2)));
67extern int __cdecl cscanf(const char*,...) __attribute__((alias("_cscanf"),format(scanf,1,2)));
68#else
69#define cprintf _cprintf
70#define cscanf _cscanf
71#endif /* __GNUC__ */
72
73#endif /* __WINE_CONIO_H */
Note: See TracBrowser for help on using the repository browser.

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