1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-13 15:18:14 +00:00

Clean up extern int errno and errno.h inclusions. (#102)

Closes interlisp/medley#86.
This commit is contained in:
Bruce Mitchener 2020-12-20 10:07:23 +07:00 committed by GitHub
parent ade0e7d4a6
commit d5ff4011a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 3 additions and 22 deletions

View File

@ -15,7 +15,6 @@ static char *id = "$Id: chatter.c,v 1.2 1999/01/03 02:06:51 sybalsky Exp $ Copyr
#include <sys/termios.h>
#include <sys/ttydev.h>
#include <stdio.h>
#include <errno.h>
#include "lispemul.h"
#include "address.h"

View File

@ -87,8 +87,6 @@ LispPTR DSP_VideoColor(LispPTR *args) /* args[0] : black flag */
extern struct cursor CurrentCursor;
extern int LispWindowFd;
extern int errno;
/****************************************************
*
* DSP_Cursor() entry of SUBRCALL 64 2

View File

@ -129,7 +129,6 @@ struct winlock DisplayLockArea;
#endif /* SUNDISPLAY */
extern DLword *EmCursorBitMap68K;
extern int errno;
extern IFPAGE *InterfacePage;
int DebugDSP = T;

View File

@ -11,6 +11,7 @@ static char *id = "$Id: initkbd.c,v 1.2 1999/01/03 02:07:09 sybalsky Exp $ Copyr
#include "version.h"
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
@ -124,7 +125,6 @@ extern struct screen LispScreen;
extern int LispWindowFd;
int LispKbdFd = -1;
extern int errno;
/* for debug */
int DebugKBD = NIL;

View File

@ -11,6 +11,7 @@ static char *id = "$Id: kbdsubrs.c,v 1.2 1999/01/03 02:07:10 sybalsky Exp $ Copy
#include "version.h"
#include <errno.h>
#include <stdio.h>
#ifdef DOS
#include <time.h>
@ -70,8 +71,6 @@ extern struct screen LispScreen;
extern int LispWindowFd;
extern fd_set LispReadFds;
extern int errno;
void KB_enable(LispPTR *args) /* args[0] : ON/OFF flag
* T -- ON
* NIL -- OFF

View File

@ -13,7 +13,6 @@ static char *id = "$Id: ldeboot.c,v 1.3 1999/01/03 02:07:13 sybalsky Exp $ Copyr
#include <ctype.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -63,7 +63,6 @@ char *devices[] = {"le0", "le1", "le2", "le3", "le4", "ie0", "ie1", "i
#include <nlist.h>
#include <fcntl.h>
#include <errno.h>
#include <malloc.h>
#endif /* NOETHER */

View File

@ -12,7 +12,6 @@ static char *id = "$Id: ldsout.c,v 1.4 2001/12/26 22:17:02 sybalsky Exp $ Copyri
#include "version.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
@ -41,7 +40,6 @@ static char *id = "$Id: ldsout.c,v 1.4 2001/12/26 22:17:02 sybalsky Exp $ Copyri
#define DEFAULT_PRIME_SYSOUTSIZE 8
#define MAX_EXPLICIT_SYSOUTSIZE 256 /* Max possible sysout size is 64Mb */
#define MBYTE 0x100000 /* 1 Mbyte */
extern int errno;
/* Flag for indication whether process space
is going to expand or not */

View File

@ -27,8 +27,6 @@ static char *id = "$Id: llcolor.c,v 1.2 1999/01/03 02:07:15 sybalsky Exp $ Copyr
#include <sys/types.h>
#include <sys/file.h>
#include <errno.h>
#include "lispemul.h"
#include "lispmap.h"
#include "lsptypes.h"

View File

@ -39,7 +39,6 @@ int main(int argc, char *argv[])
#include <nlist.h>
#include <fcntl.h>
#include <errno.h>
int ether_fd = -1; /* file descriptor for ether socket */
unsigned char ether_host[6] = {0, 0, 0, 0, 0, 0}; /* 48 bit address */

View File

@ -41,7 +41,6 @@ static char *id = "$Id: setsout.c,v 1.3 1999/05/31 23:35:41 sybalsky Exp $ Copyr
#define IFPAGE_ADDRESS 512
#define MBYTE 0x100000 /* 1 Mbyte */
extern int errno;
void set_sysout(int version, char *sysout_file_name);

View File

@ -13,6 +13,7 @@ static char *id = "$Id: socket.c,v 1.2 1999/01/03 02:07:34 sybalsky Exp $ Copyri
#include "version.h"
#include <errno.h>
#include <stdio.h>
#include <X11/Xos.h>
#include <X11/Xproto.h>
@ -23,9 +24,6 @@ static char *id = "$Id: socket.c,v 1.2 1999/01/03 02:07:34 sybalsky Exp $ Copyri
#include <sys/socket.h>
#include <netinet/tcp.h>
extern int errno; /* Certain (broken) OS's don't have this */
/* decl in errno.h */
#ifdef UNIXCONN
#include <sys/un.h>
#ifndef X_UNIX_PATH

View File

@ -55,8 +55,6 @@ short *DisplayRegion68k; /* 68k addr of #{}22,0 */
struct cursor CurrentCursor, InvisibleCursor;
struct winlock DisplayLockArea;
extern int errno;
/**************************************
extern DLword *EmCursorBitMap68K;
extern IFPAGE *InterfacePage;

View File

@ -20,7 +20,6 @@ static char *id = "$Id: tstsout.c,v 1.3 1999/05/31 23:35:44 sybalsky Exp $ Copyr
#include <sys/file.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include "adr68k.h"
@ -34,7 +33,6 @@ static char *id = "$Id: tstsout.c,v 1.3 1999/05/31 23:35:44 sybalsky Exp $ Copyr
#define IFPAGE_ADDRESS 512
#define MBYTE 0x100000 /* 1 Mbyte */
extern int errno;
void check_sysout(char *sysout_file_name, int verbose);
void usage(char *prog);