Rationalised use of #includes to be more standards-compliant.

This commit is contained in:
dtrg
2006-07-18 17:10:29 +00:00
parent 8ea67498ed
commit 4c0a0e6119
48 changed files with 80 additions and 66 deletions

View File

@@ -7,6 +7,7 @@
indicated by the parameters, and then give a core dump
*/
#include <string.h>
#include <system.h>
static

View File

@@ -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"

View File

@@ -4,6 +4,7 @@
*/
/* $Id$ */
#include <string.h>
#include <system.h>
#include "print.h"

View File

@@ -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

View File

@@ -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;

View File

@@ -9,6 +9,7 @@
*/
#include <ctype.h>
#include <string.h>
/* #define XXX_YYY /* only for early debugging */

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_access(path, mode)

View File

@@ -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)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_chmode(path, mode)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
void
sys_close(fp)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
extern File *_get_entry();

View File

@@ -6,7 +6,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <system.h>
#include "system.h"
long
sys_filesize(path)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_lock(path)

View File

@@ -6,8 +6,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <system.h>
#include "system.h"
long
sys_modtime(path)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
extern File *_get_entry();

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_read(fp, bufptr, bufsiz, pnbytes)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_remove(path)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_rename(path1, path2)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
long lseek();

View File

@@ -5,7 +5,7 @@
/* $Id$ */
#include <stdlib.h>
#include <system.h>
#include "system.h"
void
sys_stop(how)

View File

@@ -4,7 +4,7 @@
*/
/* RCS: $Id$ */
#include <system.h>
#include "system.h"
File _sys_ftab[SYS_NOPEN] = {
{ 0, OP_READ},

View File

@@ -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__ */

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
long time();

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_unlock(path)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_write(fp, bufptr, nbytes)