Declare tags.c variables in tags.h. Declare stuff with external
linkage that is not in any other header in misc.h. Remove some redundant declarations elsewhere. (prompt, doredir, dopipe, doexecute, output, screen, parsedelay): Static linkage.
This commit is contained in:
parent
8d438a4601
commit
e7811102a3
11 changed files with 55 additions and 51 deletions
|
@ -35,7 +35,14 @@
|
|||
#define _MISC_H_
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include <winsock.h>
|
||||
#else
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#if !defined(aix) && !defined(sgi)
|
||||
#ifndef ultrix /* already defined in ultrix */
|
||||
|
@ -46,4 +53,33 @@ typedef signed char s_char;
|
|||
#endif /* !aix && !sgi */
|
||||
typedef short coord; /* also change NSC_COORD in nsc.h */
|
||||
|
||||
struct ioqueue;
|
||||
|
||||
extern struct fn fnlist[];
|
||||
extern s_char empirehost[];
|
||||
extern s_char empireport[];
|
||||
extern int interrupt;
|
||||
extern s_char num_teles[];
|
||||
extern int sock;
|
||||
extern s_char *SO;
|
||||
extern s_char *SE;
|
||||
|
||||
#ifdef _WIN32
|
||||
HANDLE hStdIn;
|
||||
#endif
|
||||
|
||||
void getsose(void);
|
||||
int expect(int s, int match, s_char *buf);
|
||||
int handleintr(int);
|
||||
int hostaddr(s_char *name, struct sockaddr_in *addr);
|
||||
int hostconnect(struct sockaddr_in *addr);
|
||||
int hostport(s_char *name, struct sockaddr_in *addr);
|
||||
int login(int s, s_char *uname, s_char *cname, s_char *cpass, int kill_proc);
|
||||
void saveargv(int ac, s_char **src, s_char **dst);
|
||||
void sendcmd(int s, int cmd, s_char *arg);
|
||||
int sendeof(int sock);
|
||||
void servercmd(struct ioqueue *ioq, FILE *auxfi);
|
||||
int serverio(int s, struct ioqueue *ioq);
|
||||
int termio(int fd, int sock, FILE *auxfi);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue