mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 09:13:00 +00:00
fixed bug in stdio.h
svn path=/trunk/; revision=258
This commit is contained in:
parent
f6e36a9f86
commit
37f381130a
3 changed files with 65 additions and 48 deletions
|
@ -59,43 +59,59 @@ enum COLORS {
|
||||||
|
|
||||||
#define BLINK 0x80 /* blink bit */
|
#define BLINK 0x80 /* blink bit */
|
||||||
|
|
||||||
void blinkvideo(void);
|
//void blinkvideo(void);
|
||||||
char * cgets(char *_str);
|
char * _cgets(char *_str);
|
||||||
void clreol(void);
|
//void clreol(void);
|
||||||
void clrscr(void);
|
//void clrscr(void);
|
||||||
int _conio_kbhit(void); /* checks for ungetch char */
|
int _kbhit(void); /* checks for ungetch char */
|
||||||
//int cprintf(const char *_format, ...) __attribute__((format(printf,1,2)));
|
int _cprintf(const char *_format, ...) __attribute__((format(printf,1,2)));
|
||||||
int cputs(const char *_str);
|
int _cputs(const char *_str);
|
||||||
//int cscanf(const char *_format, ...) __attribute__((format(scanf,1,2)));
|
int _cscanf(const char *_format, ...) __attribute__((format(scanf,1,2)));
|
||||||
void delline(void);
|
//void delline(void);
|
||||||
int getch(void);
|
int _getch(void);
|
||||||
int getche(void);
|
int _getche(void);
|
||||||
int gettext(int _left, int _top, int _right, int _bottom, void *_destin);
|
//int gettext(int _left, int _top, int _right, int _bottom, void *_destin);
|
||||||
void gettextinfo(struct text_info *_r);
|
//void gettextinfo(struct text_info *_r);
|
||||||
void gotoxy(int _x, int _y);
|
//void gotoxy(int _x, int _y);
|
||||||
void gppconio_init(void);
|
//void gppconio_init(void);
|
||||||
void highvideo(void);
|
//void highvideo(void);
|
||||||
void insline(void);
|
//void insline(void);
|
||||||
void intensevideo(void);
|
//void intensevideo(void);
|
||||||
void lowvideo(void);
|
//void lowvideo(void);
|
||||||
int movetext(int _left, int _top, int _right, int _bottom, int _destleft, int _desttop);
|
//int movetext(int _left, int _top, int _right, int _bottom, int _destleft, int _desttop);
|
||||||
void normvideo(void);
|
//void normvideo(void);
|
||||||
int putch(int _c);
|
int _putch(int _c);
|
||||||
int puttext(int _left, int _top, int _right, int _bottom, void *_source);
|
//int puttext(int _left, int _top, int _right, int _bottom, void *_source);
|
||||||
void _setcursortype(int _type);
|
//void _setcursortype(int _type);
|
||||||
void _set_screen_lines(int _nlines);
|
//void _set_screen_lines(int _nlines);
|
||||||
void textattr(int _attr);
|
//void textattr(int _attr);
|
||||||
void textbackground(int _color);
|
//void textbackground(int _color);
|
||||||
void textcolor(int _color);
|
//void textcolor(int _color);
|
||||||
void textmode(int _mode);
|
//void textmode(int _mode);
|
||||||
int ungetch(int);
|
int _ungetch(int);
|
||||||
unsigned int wherex(void);
|
//unsigned int wherex(void);
|
||||||
unsigned int wherey(void);
|
//unsigned int wherey(void);
|
||||||
void window(int _left, int _top, int _right, int _bottom);
|
//void window(int _left, int _top, int _right, int _bottom);
|
||||||
|
|
||||||
|
|
||||||
|
int _inp(unsigned short p);
|
||||||
|
unsigned short _inpw(unsigned short p);
|
||||||
|
unsigned long _inpd(unsigned short p);
|
||||||
|
int _outp(unsigned short p, int i);
|
||||||
|
unsigned short _outpw(unsigned short p, unsigned short w);
|
||||||
|
unsigned long _outpd(unsigned short p, unsigned long d);
|
||||||
|
|
||||||
|
#define cgets _cgets
|
||||||
|
#define cprintf _cprintf
|
||||||
|
#define cputs _cputs
|
||||||
|
#define cscanf _cscanf
|
||||||
|
#define getch _getch
|
||||||
|
#define getche _getche
|
||||||
|
#define kbhit _kbhit
|
||||||
|
#define putch _putch
|
||||||
|
#define ungetch _ungetch
|
||||||
|
|
||||||
|
|
||||||
#define kbhit _conio_kbhit /* Who ever includes gppconio.h probably
|
|
||||||
also wants _conio_kbhit and not kbhit
|
|
||||||
from libc */
|
|
||||||
|
|
||||||
#endif /* !_POSIX_SOURCE */
|
#endif /* !_POSIX_SOURCE */
|
||||||
#endif /* !__STRICT_ANSI__ */
|
#endif /* !__STRICT_ANSI__ */
|
||||||
|
|
|
@ -9,19 +9,20 @@ struct _diskfree_t {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
int _chdrive( int drive );
|
|
||||||
int _getdrive( void );
|
|
||||||
char *_getcwd( char *buffer, int maxlen );
|
|
||||||
|
|
||||||
int _chdir(const char *_path);
|
int _chdir(const char *_path);
|
||||||
char *_getcwd(char *, int);
|
int _chdrive( int drive );
|
||||||
|
char *_getcwd( char *buffer, int maxlen );
|
||||||
|
int _getdrive( void );
|
||||||
|
unsigned int _getdiskfree(unsigned int _drive, struct _diskfree_t *_diskspace);
|
||||||
int _mkdir(const char *_path);
|
int _mkdir(const char *_path);
|
||||||
int _rmdir(const char *_path);
|
int _rmdir(const char *_path);
|
||||||
unsigned int _getdiskfree(unsigned int _drive, struct _diskfree_t *_diskspace);
|
|
||||||
#define chdir _chdir
|
|
||||||
#define getcwd _getcwd
|
|
||||||
#define mkdir _mkdir
|
|
||||||
#define rmdir _rmdir
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#define chdir _chdir
|
||||||
|
#define chdrive _chdrive
|
||||||
|
#define getcwd _getcwd
|
||||||
|
#define mkdir _mkdir
|
||||||
|
#define rmdir _rmdir
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -10,6 +10,7 @@ extern "C" {
|
||||||
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
|
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
|
||||||
|
|
||||||
#include <sys/djtypes.h>
|
#include <sys/djtypes.h>
|
||||||
|
|
||||||
|
|
||||||
#define _IOFBF 00001
|
#define _IOFBF 00001
|
||||||
#define _IONBF 00002
|
#define _IONBF 00002
|
||||||
|
@ -44,7 +45,6 @@ extern "C" {
|
||||||
|
|
||||||
#include <internal/types.h>
|
#include <internal/types.h>
|
||||||
|
|
||||||
typedef void *va_list;
|
|
||||||
|
|
||||||
#ifndef _FILE_DEFINED
|
#ifndef _FILE_DEFINED
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue