diff --git a/modules/src/em_code/em.c b/modules/src/em_code/em.c index 635a5bd9b..8aac6ed5d 100644 --- a/modules/src/em_code/em.c +++ b/modules/src/em_code/em.c @@ -9,7 +9,6 @@ Also contains C_open, C_close */ #include -#include #include #include "insert.h" #include "em_private.h" @@ -17,8 +16,6 @@ int C_ontmpfile = 0; int C_sequential = 1; Part *C_curr_part; -Part *C_stable[TABSIZ]; -char *C_tmpdir = TMP_DIR; int (*C_outpart)(), (*C_swtout)(), (*C_swttmp)(); #ifdef INCORE @@ -28,7 +25,7 @@ char *C_BASE; File *C_ofp; #ifndef INCORE -File *C_tfr, *C_old_ofp; +File *C_tfr; char *C_tmpfile; char *strcpy(), *strcat(); char *C_ibuf = 0; @@ -43,8 +40,6 @@ long C_current_out; static char obuf[BUFFERSIZ]; char *C_top = &obuf[BUFFERSIZ]; -char *C_old_top; -char *C_old_opp; #ifdef INCORE char *C_current_out = obuf; #else diff --git a/modules/src/em_code/insert.c b/modules/src/em_code/insert.c index 7898e29da..11ec89539 100644 --- a/modules/src/em_code/insert.c +++ b/modules/src/em_code/insert.c @@ -9,10 +9,19 @@ they can be written immediately. */ +#include #include #include "insert.h" +char *C_tmpdir = TMP_DIR; +static Part *C_stable[TABSIZ]; + +static char *C_old_top; +static char *C_old_opp; + #ifndef INCORE +static File *C_old_ofp; + static int getbyte(b) long b; diff --git a/modules/src/em_code/insert.h b/modules/src/em_code/insert.h index 9b36731ad..8fd1c5816 100644 --- a/modules/src/em_code/insert.h +++ b/modules/src/em_code/insert.h @@ -43,7 +43,7 @@ typedef struct part { extern int C_ontmpfile, C_sequential; extern Part - *C_curr_part, *C_stable[]; + *C_curr_part; #ifdef INCORE extern char *C_current_out, *C_BASE; @@ -59,14 +59,11 @@ extern int (*C_outpart)(), (*C_swtout)(), (*C_swttmp)(); extern File *C_ofp; #ifndef INCORE -extern File *C_tfr, *C_old_ofp; +extern File *C_tfr; extern char *C_tmpfile; -extern char *C_tmpdir; #endif extern char *C_top; -extern char *C_old_top; -extern char *C_old_opp; extern char *C_ibuf; #define put(c) if (C_opp == C_top) C_flush(); *C_opp++ = (c)