From d266ec4b2a69283c3dd16c318e0f3eeeaa3ab392 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Thu, 19 Sep 2013 13:28:34 +0800 Subject: [PATCH] Remove estruct dependencies in headers of fileio and flook. --- Makefile | 4 ++-- fileio.h | 2 +- flook.c | 1 + flook.h | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index a6bcbe3..e508990 100644 --- a/Makefile +++ b/Makefile @@ -151,8 +151,8 @@ execute.o: execute.c edef.h estruct.h line.h utf8.h retcode.h bind.h \ random.h display.h file.h file.o: file.c file.h buffer.h estruct.h line.h utf8.h retcode.h crypt.h \ edef.h execute.h fileio.h input.h lock.h log.h window.h -fileio.o: fileio.c fileio.h estruct.h line.h utf8.h retcode.h crypt.h -flook.o: flook.c flook.h estruct.h line.h utf8.h retcode.h fileio.h +fileio.o: fileio.c fileio.h retcode.h estruct.h line.h utf8.h crypt.h +flook.o: flook.c flook.h retcode.h estruct.h line.h utf8.h fileio.h globals.o: globals.c estruct.h line.h utf8.h retcode.h edef.h ibmpc.o: ibmpc.c estruct.h line.h utf8.h retcode.h edef.h input.o: input.c input.h edef.h estruct.h line.h utf8.h retcode.h bind.h \ diff --git a/fileio.h b/fileio.h index 0d47f47..be60bdf 100644 --- a/fileio.h +++ b/fileio.h @@ -1,7 +1,7 @@ #ifndef _FILEIO_H_ #define _FILEIO_H_ -#include "estruct.h" +#include "retcode.h" typedef enum { FIOSUC, /* File I/O, success. */ diff --git a/flook.c b/flook.c index 0524816..5f7875f 100644 --- a/flook.c +++ b/flook.c @@ -7,6 +7,7 @@ #include +#include "estruct.h" #include "fileio.h" diff --git a/flook.h b/flook.h index 8466659..cfcd1cd 100644 --- a/flook.h +++ b/flook.h @@ -1,4 +1,4 @@ -#include "estruct.h" +#include "retcode.h" #define rcfname pathname[ 0]