Rationalised use of #includes to be more standards-compliant.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
indicated by the parameters, and then give a core dump
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <system.h>
|
||||
|
||||
static
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
/* I/O part of em_code module.
|
||||
Also contains C_open, C_close
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <alloc.h>
|
||||
#include <em_arith.h>
|
||||
#include "insert.h"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <string.h>
|
||||
#include <system.h>
|
||||
#include "print.h"
|
||||
|
||||
|
||||
@@ -86,12 +86,12 @@ EM_doinstr(p)
|
||||
if (! checkarg(&(p->em_arg), cst_ptyp)) return;
|
||||
}
|
||||
else {
|
||||
#include "C_mnem_narg"
|
||||
#include "C_mnem_narg.h"
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
#include "C_mnem"
|
||||
#include "C_mnem.h"
|
||||
}
|
||||
|
||||
PRIVATE void
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
some routines from the system module. and the em_code module
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <alloc.h>
|
||||
#include <system.h>
|
||||
@@ -35,8 +37,6 @@
|
||||
#define ungetbyte(uch) ((uch) >= 0 && (*--_ich = (uch)))
|
||||
#define init_input() (_fill(), _ich--)
|
||||
|
||||
#define EOF -1
|
||||
|
||||
static File *fd;
|
||||
static char *_ich;
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
/* #define XXX_YYY /* only for early debugging */
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
int
|
||||
sys_access(path, mode)
|
||||
|
||||
@@ -4,15 +4,13 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
|
||||
char *sbrk();
|
||||
#include "system.h"
|
||||
#include <unistd.h>
|
||||
|
||||
char *
|
||||
sys_break(incr)
|
||||
int incr;
|
||||
{
|
||||
char *sbrk();
|
||||
register char *brk = sbrk(incr);
|
||||
|
||||
if (brk == (char *) 0 || brk == (char *)-1)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
int
|
||||
sys_chmode(path, mode)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
void
|
||||
sys_close(fp)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
extern File *_get_entry();
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
long
|
||||
sys_filesize(path)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
int
|
||||
sys_lock(path)
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
long
|
||||
sys_modtime(path)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
extern File *_get_entry();
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
int
|
||||
sys_read(fp, bufptr, bufsiz, pnbytes)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
int
|
||||
sys_remove(path)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
int
|
||||
sys_rename(path1, path2)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
long lseek();
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
void
|
||||
sys_stop(how)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* RCS: $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
File _sys_ftab[SYS_NOPEN] = {
|
||||
{ 0, OP_READ},
|
||||
|
||||
@@ -62,6 +62,4 @@ _PROTOTYPE(long sys_modtime, (char *));
|
||||
/* return value for sys_break */
|
||||
#define ILL_BREAK ((char *)0)
|
||||
|
||||
/* system's idea of block */
|
||||
#define BUFSIZ 1024
|
||||
#endif /* __SYSTEM_INCLUDED__ */
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
long time();
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
int
|
||||
sys_unlock(path)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <system.h>
|
||||
#include "system.h"
|
||||
|
||||
int
|
||||
sys_write(fp, bufptr, nbytes)
|
||||
|
||||
Reference in New Issue
Block a user