ReactOS 0.4.16-dev-2104-gb84fa49
conio.h
Go to the documentation of this file.
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 <corecrt.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17_ACRTIMP char* __cdecl _cgets(char*);
18_ACRTIMP int __cdecl _cprintf(const char*,...);
19_ACRTIMP int __cdecl _cputs(const char*);
20_ACRTIMP int __cdecl _cscanf(const char*,...);
21_ACRTIMP int __cdecl _getch(void);
22_ACRTIMP int __cdecl _getche(void);
23_ACRTIMP int __cdecl _kbhit(void);
24_ACRTIMP int __cdecl _putch(int);
26
27#ifdef _M_IX86
28_ACRTIMP int __cdecl _inp(unsigned short);
29_ACRTIMP __msvcrt_ulong __cdecl _inpd(unsigned short);
30_ACRTIMP unsigned short __cdecl _inpw(unsigned short);
31_ACRTIMP int __cdecl _outp(unsigned short, int);
33_ACRTIMP unsigned 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
49#ifndef _MSC_VER
50static inline int inp(unsigned short i) { return _inp(i); }
51static inline unsigned short inpw(unsigned short i) { return _inpw(i); }
52static inline int outp(unsigned short i, int j) { return _outp(i, j); }
53static inline unsigned short outpw(unsigned short i, unsigned short j) { return _outpw(i, j); }
54#endif
55#endif
56
57#if defined(__GNUC__) && (__GNUC__ < 4)
58_ACRTIMP int __cdecl cprintf(const char*,...) __attribute__((alias("_cprintf"),format(printf,1,2)));
60#else
61#define cprintf _cprintf
62#define cscanf _cscanf
63#endif /* __GNUC__ */
64
65#endif /* __WINE_CONIO_H */
const WCHAR * alias
Definition: main.c:67
#define cprintf
Definition: conio.h:61
static int putch(int c)
Definition: conio.h:46
#define cscanf
Definition: conio.h:62
_ACRTIMP int __cdecl _putch(int)
Definition: console.c:309
_ACRTIMP int __cdecl _cputs(const char *)
Definition: console.c:78
_ACRTIMP int __cdecl _ungetch(int)
Definition: console.c:441
static char * cgets(char *str)
Definition: conio.h:41
static int getch(void)
Definition: conio.h:43
_ACRTIMP int __cdecl _getche(void)
Definition: console.c:354
static int kbhit(void)
Definition: conio.h:45
static int ungetch(int c)
Definition: conio.h:47
static int getche(void)
Definition: conio.h:44
_ACRTIMP int __cdecl _cprintf(const char *,...)
Definition: console.c:563
_ACRTIMP int __cdecl _cscanf(const char *,...)
Definition: scanf.c:496
_ACRTIMP int __cdecl _kbhit(void)
Definition: console.c:474
static int cputs(const char *str)
Definition: conio.h:42
_ACRTIMP int __cdecl _getch(void)
Definition: console.c:218
#define __cdecl
Definition: corecrt.h:121
#define _ACRTIMP
Definition: corecrt.h:153
unsigned long __msvcrt_ulong
Definition: corecrt.h:168
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl scanf(const char *,...) __WINE_CRT_SCANF_ATTR(1
#define printf
Definition: freeldr.h:97
const GLubyte * c
Definition: glext.h:8905
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
Definition: glfuncs.h:250
__INTRIN_INLINE unsigned long __cdecl _inpd(unsigned short Port)
Definition: intrin_x86.h:1628
__INTRIN_INLINE unsigned long __cdecl _outpd(unsigned short Port, unsigned long dataword)
Definition: intrin_x86.h:1645
__INTRIN_INLINE int __cdecl _outp(unsigned short Port, int databyte)
Definition: intrin_x86.h:1633
__INTRIN_INLINE unsigned short __cdecl _inpw(unsigned short Port)
Definition: intrin_x86.h:1623
__INTRIN_INLINE unsigned short __cdecl _outpw(unsigned short Port, unsigned short dataword)
Definition: intrin_x86.h:1639
__INTRIN_INLINE int __cdecl _inp(unsigned short Port)
Definition: intrin_x86.h:1618
const WCHAR * str
Definition: format.c:58
#define const
Definition: zconf.h:233