Rearranged a bit

This commit is contained in:
ceriel 1991-03-22 15:17:16 +00:00
parent 1dff113351
commit eecdf96b0b
3 changed files with 12 additions and 11 deletions

View 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

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

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