rogue4: add more function declarations.
This commit is contained in:
parent
c1d6a6af6a
commit
0f87d5b4d8
2 changed files with 30 additions and 18 deletions
|
|
@ -78,6 +78,18 @@ extern bool got_genocide;
|
|||
#define O_BINARY 0
|
||||
#endif
|
||||
|
||||
extern int md_erasechar(void);
|
||||
extern FILE *md_fdopen(int fd, char *mode);
|
||||
extern int md_fileno(FILE *fp);
|
||||
extern char *md_getusername(int uid);
|
||||
extern char *md_gethomedir();
|
||||
extern int md_getuid(void);
|
||||
extern void md_ignore_signals(void);
|
||||
extern void md_init(void);
|
||||
extern int md_killchar(void);
|
||||
extern void md_normaluser(void);
|
||||
extern int md_readchar(WINDOW *win);
|
||||
extern int md_shellescape(void);
|
||||
extern void md_sleep(int s);
|
||||
extern int md_unlink(char *file);
|
||||
extern int md_unlink_open_file(char *file, int inf);
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ char *strdup(const char *s);
|
|||
#define MOD_MOVE(c) (toupper(c) )
|
||||
|
||||
void
|
||||
md_init()
|
||||
md_init(void)
|
||||
{
|
||||
#ifdef __INTERIX
|
||||
char *term;
|
||||
|
|
@ -105,7 +105,7 @@ md_init()
|
|||
}
|
||||
|
||||
int
|
||||
md_hasclreol()
|
||||
md_hasclreol(void)
|
||||
{
|
||||
#ifdef CE
|
||||
return((CE != NULL) && (*CE != 0));
|
||||
|
|
@ -127,7 +127,7 @@ md_putchar(int c)
|
|||
static int md_standout_mode = 0;
|
||||
|
||||
void
|
||||
md_raw_standout()
|
||||
md_raw_standout(void)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
|
||||
|
|
@ -150,7 +150,7 @@ md_raw_standout()
|
|||
}
|
||||
|
||||
void
|
||||
md_raw_standend()
|
||||
md_raw_standend(void)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
|
||||
|
|
@ -231,7 +231,7 @@ md_creat(char *file, int mode)
|
|||
|
||||
|
||||
void
|
||||
md_normaluser()
|
||||
md_normaluser(void)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
setuid(getuid());
|
||||
|
|
@ -240,7 +240,7 @@ md_normaluser()
|
|||
}
|
||||
|
||||
int
|
||||
md_getuid()
|
||||
md_getuid(void)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
return( getuid() );
|
||||
|
|
@ -297,7 +297,7 @@ md_getusername(int uid)
|
|||
}
|
||||
|
||||
char *
|
||||
md_gethomedir()
|
||||
md_gethomedir(void)
|
||||
{
|
||||
static char homedir[PATH_MAX];
|
||||
char *h = NULL;
|
||||
|
|
@ -349,7 +349,7 @@ md_sleep(int s)
|
|||
}
|
||||
|
||||
char *
|
||||
md_getshell()
|
||||
md_getshell(void)
|
||||
{
|
||||
static char shell[PATH_MAX];
|
||||
char *s = NULL;
|
||||
|
|
@ -379,7 +379,7 @@ md_getshell()
|
|||
}
|
||||
|
||||
void
|
||||
md_ignore_signals()
|
||||
md_ignore_signals(void)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
int i;
|
||||
|
|
@ -396,7 +396,7 @@ md_ignore_signals()
|
|||
}
|
||||
|
||||
int
|
||||
md_shellescape()
|
||||
md_shellescape(void)
|
||||
{
|
||||
#if (!defined(_WIN32) && !defined(__DJGPP__))
|
||||
int ret_status;
|
||||
|
|
@ -570,7 +570,7 @@ md_htonl(unsigned long int x)
|
|||
}
|
||||
|
||||
int
|
||||
md_ucount()
|
||||
md_ucount(void)
|
||||
{
|
||||
#ifdef __DJGPP__
|
||||
return(1);
|
||||
|
|
@ -607,7 +607,7 @@ md_getloadavg(double *avg)
|
|||
}
|
||||
|
||||
long
|
||||
md_random()
|
||||
md_random(void)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return(rand());
|
||||
|
|
@ -627,7 +627,7 @@ md_srandom(unsigned x)
|
|||
}
|
||||
|
||||
int
|
||||
md_rand()
|
||||
md_rand(void)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return(rand());
|
||||
|
|
@ -657,7 +657,7 @@ md_strdup(const char *s)
|
|||
}
|
||||
|
||||
long
|
||||
md_memused()
|
||||
md_memused(void)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
MEMORYSTATUS stat;
|
||||
|
|
@ -671,7 +671,7 @@ md_memused()
|
|||
}
|
||||
|
||||
int
|
||||
md_erasechar()
|
||||
md_erasechar(void)
|
||||
{
|
||||
#ifdef BSD
|
||||
return(_tty.sg_erase); /* process erase character */
|
||||
|
|
@ -683,7 +683,7 @@ md_erasechar()
|
|||
}
|
||||
|
||||
int
|
||||
md_killchar()
|
||||
md_killchar(void)
|
||||
{
|
||||
#ifdef BSD
|
||||
return(_tty.sg_kill);
|
||||
|
|
@ -712,7 +712,7 @@ md_unctrl(char ch)
|
|||
}
|
||||
|
||||
void
|
||||
md_flushinp()
|
||||
md_flushinp(void)
|
||||
{
|
||||
#ifdef BSD
|
||||
ioctl(0, TIOCFLUSH);
|
||||
|
|
@ -1013,7 +1013,7 @@ int undo[5];
|
|||
int uindex = -1;
|
||||
|
||||
int
|
||||
reread()
|
||||
reread(void)
|
||||
{
|
||||
int redo;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue