Rearranged a bit
authorceriel <none@none>
Fri, 22 Mar 1991 15:17:16 +0000 (15:17 +0000)
committerceriel <none@none>
Fri, 22 Mar 1991 15:17:16 +0000 (15:17 +0000)
modules/src/em_code/em.c
modules/src/em_code/insert.c
modules/src/em_code/insert.h

index 635a5bd..8aac6ed 100644 (file)
@@ -9,7 +9,6 @@
        Also contains C_open, C_close
 */
 #include <alloc.h>
-#include <em_path.h>
 #include <em_arith.h>
 #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
index 7898e29..11ec895 100644 (file)
@@ -9,10 +9,19 @@
    they can be written immediately.
 */
 
+#include <em_path.h>
 #include <alloc.h>
 #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;
index 9b36731..8fd1c58 100644 (file)
@@ -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)