Mercurial > hg > early-roguelike
comparison arogue7/mdport.c @ 202:e69128d2e4c5
Advanced Rogue 7: remove some unused md_ functions.
md_hasclreol() and md_sleep() were not actually portable. If they were
needed in the future, fixing them would be possible.
| author | John "Elwin" Edwards |
|---|---|
| date | Wed, 12 Aug 2015 17:03:15 -0400 |
| parents | 6fb21004a981 |
| children | aa8e1fc62926 |
comparison
equal
deleted
inserted
replaced
| 201:6fb21004a981 | 202:e69128d2e4c5 |
|---|---|
| 90 #if defined(__CYGWIN__) || defined(__MSYS__) | 90 #if defined(__CYGWIN__) || defined(__MSYS__) |
| 91 ESCDELAY=250; | 91 ESCDELAY=250; |
| 92 #endif | 92 #endif |
| 93 } | 93 } |
| 94 | 94 |
| 95 int | |
| 96 md_hasclreol() | |
| 97 { | |
| 98 #ifndef attron | |
| 99 return(!CE); | |
| 100 #elif !defined(__PDCURSES__) | |
| 101 return(clr_eol != NULL); | |
| 102 #else | |
| 103 return(TRUE); | |
| 104 #endif | |
| 105 } | |
| 106 | |
| 107 #ifdef attron | 95 #ifdef attron |
| 108 # define _puts(s) tputs(s, 0, md_putchar); | 96 # define _puts(s) tputs(s, 0, md_putchar); |
| 109 # define SO enter_standout_mode | 97 # define SO enter_standout_mode |
| 110 # define SE exit_standout_mode | 98 # define SE exit_standout_mode |
| 111 #endif | 99 #endif |
| 305 homedir[len] = slash; | 293 homedir[len] = slash; |
| 306 homedir[len+1] = 0; | 294 homedir[len+1] = 0; |
| 307 } | 295 } |
| 308 | 296 |
| 309 return(homedir); | 297 return(homedir); |
| 310 } | |
| 311 | |
| 312 int | |
| 313 md_sleep(int s) | |
| 314 { | |
| 315 #ifdef _WIN32 | |
| 316 _sleep(s); | |
| 317 #else | |
| 318 sleep(s); | |
| 319 #endif | |
| 320 } | 298 } |
| 321 | 299 |
| 322 char * | 300 char * |
| 323 md_getshell() | 301 md_getshell() |
| 324 { | 302 { |
