Diff for games/_shared/dos2linux.c between version 1.4 and 1.5
| version 1.4, 2003/08/03 21:34:18 |
version 1.5, 2003/08/12 20:50:59 |
|
|
| * |
* |
| * Changelog: |
* Changelog: |
| * 03/05/2003 - created |
* 03/05/2003 - created |
| |
* 12/08/2003 - X11 adaptations |
| * |
* |
| */ |
*/ |
| |
|
| /* $Platon: games/_shared/dos2linux.c,v 1.3 2003/07/20 12:15:56 nepto Exp $ */ |
/* $Platon: games/_shared/dos2linux.c,v 1.4 2003/08/03 21:34:18 nepto Exp $ */ |
| |
|
| #include <string.h> |
#include <string.h> |
| #include <stdlib.h> |
#include <stdlib.h> |
| #include <time.h> |
#include <time.h> |
| #include <typedef.h> |
#include <typedef.h> |
| #include <vga.h> |
#include <vga.h> |
| |
#include <system.h> |
| |
|
| #include "dos2linux.h" |
#include "dos2linux.h" |
| |
|
| |
#if PLATON_SYSTEM_SVGALIB |
| |
|
| |
static int getch_next_ret = 0; |
| |
|
| int kbhit(void) /* {{{ */ |
int kbhit(void) /* {{{ */ |
| { |
{ |
| register int ret; |
register int ret; |
| Line 32 int kbhit(void) /* {{{ */ |
|
| Line 38 int kbhit(void) /* {{{ */ |
|
| return ret > 0 ? 1 : 0; |
return ret > 0 ? 1 : 0; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| static int getch_next_ret = 0; |
|
| |
|
| int getch(void) /* {{{ */ |
int getch(void) /* {{{ */ |
| { |
{ |
| register int ret; |
register int ret; |
| Line 71 int getch(void) /* {{{ */ |
|
| Line 75 int getch(void) /* {{{ */ |
|
| return ret; |
return ret; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| |
#endif |
| |
|
| |
#if PLATON_SYSTEM_X11 |
| |
|
| |
int kbhit(void) /* {{{ */ |
| |
{ |
| |
return 0; |
| |
} /* }}} */ |
| |
|
| |
int getch(void) /* {{{ */ |
| |
{ |
| |
return 0; |
| |
} /* }}} */ |
| |
|
| |
#endif |
| |
|
| void getdate(struct date *datep) /* {{{ */ |
void getdate(struct date *datep) /* {{{ */ |
| { |
{ |
| time_t secs; |
time_t secs; |
Platon Group <platon@platon.org> http://platon.org/
|
|