/* * games/_shared/ - shared routines for games * * dos2win32.h - MS-Dos to MS-Windows call convertor header file * ____________________________________________________________ * * Developed by Ondrej Jombik * Copyright (c) 2003-2004 Platon SDG, http://platon.sk/ * All rights reserved. * * See README file for more information about this software. * See COPYING file for license information. * * Download the latest version from * http://platon.sk/projects/games/ * * Changelog: * 2003-06-23 - created */ /* $Platon: games/_shared/dos2win32.h,v 1.2 2003/08/03 21:34:18 nepto Exp $ */ #ifndef _DOS2WIN32_H # define _DOS2WIN32_H /* core types */ #define near /* nothing */ #define far /* nothing */ #define huge /* nothing */ /* no operation */ #define no_operation() kbhit() /* stdio.h */ /* stdio.h functions */ #define fcloseall() no_operation() /* conio.h */ #define putch putchar #define cputs(__s) fputs(__s, stdout) #define cprintf printf #define gotoxy(__x, __y) no_operation() #define clrscr() no_operation() #define textattr(_attr) no_operation() #define textcolor(__c) no_operation() #define textbackground(__c) no_operation() /* stdlib.h */ #define randomize() srand(time(NULL)) /* dos.h */ struct date { #if 0 int da_year; /* current year */ #endif short int da_year; /* current year */ char da_day; /* day of the month */ char da_mon; /* month (1 = Jan) */ }; struct time { unsigned char ti_min; /* minutes */ unsigned char ti_hour; /* hours */ unsigned char ti_hund; /* hundredths of seconds */ unsigned char ti_sec; /* seconds */ }; #define ctrlbrk(__handler) no_operation() #define setcbrk(__cbrkvalue) no_operation() void getdate(struct date *datep); #endif /* ifndef _DOS2WIN32_H */