| version 1.1, 2003/05/11 18:50:16 |
version 1.2, 2003/05/18 22:40:51 |
|
|
| * |
* |
| */ |
*/ |
| |
|
| /* $Platon$ */ |
/* $Platon: games/_shared/dos2linux.h,v 1.1.1.1 2003/05/11 18:50:16 nepto Exp $ */ |
| |
|
| #ifndef _DOS2LINUX_H |
#ifndef _DOS2LINUX_H |
| # define _DOS2LINUX_H |
# define _DOS2LINUX_H |
| Line 57 enum BORLAND_CPLUSPLUS_3_1_COLORS { |
|
| Line 57 enum BORLAND_CPLUSPLUS_3_1_COLORS { |
|
| #define putch putchar |
#define putch putchar |
| #define cputs(__s) fputs(__s, stdout) |
#define cputs(__s) fputs(__s, stdout) |
| #define cprintf printf |
#define cprintf printf |
| #define getch() getchar() |
|
| #define gotoxy(__x, __y) no_operation() |
#define gotoxy(__x, __y) no_operation() |
| #define clrscr() no_operation() |
#define clrscr() no_operation() |
| #define textattr(_attr) no_operation() |
#define textattr(_attr) no_operation() |
| Line 65 enum BORLAND_CPLUSPLUS_3_1_COLORS { |
|
| Line 64 enum BORLAND_CPLUSPLUS_3_1_COLORS { |
|
| #define textbackground(__c) no_operation() |
#define textbackground(__c) no_operation() |
| |
|
| int kbhit(void); |
int kbhit(void); |
| |
int getch(void); |
| |
|
| /* stdlib.h */ |
/* stdlib.h */ |
| #define randomize() srand(time(NULL)) |
#define randomize() srand(time(NULL)) |
|
|
| |
|
| /* dos.h */ |
/* dos.h */ |
| struct date { |
struct date { |
| |
#if 0 |
| int da_year; /* current year */ |
int da_year; /* current year */ |
| |
#endif |
| |
short int da_year; /* current year */ |
| char da_day; /* day of the month */ |
char da_day; /* day of the month */ |
| char da_mon; /* month (1 = Jan) */ |
char da_mon; /* month (1 = Jan) */ |
| }; |
}; |
|
|
| #define ctrlbrk(__handler) no_operation() |
#define ctrlbrk(__handler) no_operation() |
| #define setcbrk(__cbrkvalue) no_operation() |
#define setcbrk(__cbrkvalue) no_operation() |
| |
|
| |
void getdate(struct date *datep); |
| |
|
| #endif /* #ifndef _DOS2LINUX_H */ |
#endif /* #ifndef _DOS2LINUX_H */ |
| |
|