client: Reorder misc.h, and point to the .c
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
8a04586048
commit
057ca5b340
1 changed files with 23 additions and 12 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* Known contributors to this file:
|
* Known contributors to this file:
|
||||||
* Steve McClure, 1998
|
* Steve McClure, 1998
|
||||||
* Markus Armbruster, 2004-2017
|
* Markus Armbruster, 2004-2020
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MISC_H
|
#ifndef MISC_H
|
||||||
|
@ -41,10 +41,31 @@
|
||||||
|
|
||||||
extern char empirehost[];
|
extern char empirehost[];
|
||||||
extern char empireport[];
|
extern char empireport[];
|
||||||
|
|
||||||
|
/* expect.c */
|
||||||
|
int recvline(int s, char *buf);
|
||||||
|
int parseid(char *);
|
||||||
|
int expect(int s, int match, char *buf);
|
||||||
|
void sendcmd(int s, char *cmd, char *arg);
|
||||||
|
|
||||||
|
/* host.c */
|
||||||
|
int tcp_connect(char *, char *);
|
||||||
|
|
||||||
|
/* login.c */
|
||||||
|
int login(int s, char *uname, char *cname, char *cpass, int kill_proc, int);
|
||||||
|
|
||||||
|
/* play.c */
|
||||||
|
int play(int, char *);
|
||||||
|
void prompt(int, char *, char *);
|
||||||
|
|
||||||
|
/* servcmd.c */
|
||||||
extern int eight_bit_clean;
|
extern int eight_bit_clean;
|
||||||
extern FILE *auxfp;
|
extern FILE *auxfp;
|
||||||
extern int restricted;
|
extern int restricted;
|
||||||
|
int servercmd(int, char *, int);
|
||||||
|
void outch(char);
|
||||||
|
|
||||||
|
/* termlib.c */
|
||||||
#ifdef HAVE_CURSES_TERMINFO
|
#ifdef HAVE_CURSES_TERMINFO
|
||||||
void getsose(void);
|
void getsose(void);
|
||||||
void putso(void);
|
void putso(void);
|
||||||
|
@ -55,17 +76,7 @@ void putse(void);
|
||||||
#define putse() ((void)0)
|
#define putse() ((void)0)
|
||||||
#endif /* !HAVE_CURSES_TERMINFO */
|
#endif /* !HAVE_CURSES_TERMINFO */
|
||||||
|
|
||||||
int recvline(int s, char *buf);
|
/* Compatibility gunk for Windows */
|
||||||
int parseid(char *);
|
|
||||||
int expect(int s, int match, char *buf);
|
|
||||||
int tcp_connect(char *, char *);
|
|
||||||
int login(int s, char *uname, char *cname, char *cpass, int kill_proc, int);
|
|
||||||
int play(int, char *);
|
|
||||||
void prompt(int, char *, char *);
|
|
||||||
void sendcmd(int s, char *cmd, char *arg);
|
|
||||||
int servercmd(int, char *, int);
|
|
||||||
void outch(char);
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define pclose _pclose
|
#define pclose _pclose
|
||||||
#define popen _popen
|
#define popen _popen
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue