Rearranged a bit
This commit is contained in:
parent
1dff113351
commit
eecdf96b0b
|
@ -9,7 +9,6 @@
|
||||||
Also contains C_open, C_close
|
Also contains C_open, C_close
|
||||||
*/
|
*/
|
||||||
#include <alloc.h>
|
#include <alloc.h>
|
||||||
#include <em_path.h>
|
|
||||||
#include <em_arith.h>
|
#include <em_arith.h>
|
||||||
#include "insert.h"
|
#include "insert.h"
|
||||||
#include "em_private.h"
|
#include "em_private.h"
|
||||||
|
@ -17,8 +16,6 @@
|
||||||
int C_ontmpfile = 0;
|
int C_ontmpfile = 0;
|
||||||
int C_sequential = 1;
|
int C_sequential = 1;
|
||||||
Part *C_curr_part;
|
Part *C_curr_part;
|
||||||
Part *C_stable[TABSIZ];
|
|
||||||
char *C_tmpdir = TMP_DIR;
|
|
||||||
int (*C_outpart)(), (*C_swtout)(), (*C_swttmp)();
|
int (*C_outpart)(), (*C_swtout)(), (*C_swttmp)();
|
||||||
|
|
||||||
#ifdef INCORE
|
#ifdef INCORE
|
||||||
|
@ -28,7 +25,7 @@ char *C_BASE;
|
||||||
File *C_ofp;
|
File *C_ofp;
|
||||||
|
|
||||||
#ifndef INCORE
|
#ifndef INCORE
|
||||||
File *C_tfr, *C_old_ofp;
|
File *C_tfr;
|
||||||
char *C_tmpfile;
|
char *C_tmpfile;
|
||||||
char *strcpy(), *strcat();
|
char *strcpy(), *strcat();
|
||||||
char *C_ibuf = 0;
|
char *C_ibuf = 0;
|
||||||
|
@ -43,8 +40,6 @@ long C_current_out;
|
||||||
|
|
||||||
static char obuf[BUFFERSIZ];
|
static char obuf[BUFFERSIZ];
|
||||||
char *C_top = &obuf[BUFFERSIZ];
|
char *C_top = &obuf[BUFFERSIZ];
|
||||||
char *C_old_top;
|
|
||||||
char *C_old_opp;
|
|
||||||
#ifdef INCORE
|
#ifdef INCORE
|
||||||
char *C_current_out = obuf;
|
char *C_current_out = obuf;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -9,10 +9,19 @@
|
||||||
they can be written immediately.
|
they can be written immediately.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <em_path.h>
|
||||||
#include <alloc.h>
|
#include <alloc.h>
|
||||||
#include "insert.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
|
#ifndef INCORE
|
||||||
|
static File *C_old_ofp;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
getbyte(b)
|
getbyte(b)
|
||||||
long b;
|
long b;
|
||||||
|
|
|
@ -43,7 +43,7 @@ typedef struct part {
|
||||||
extern int
|
extern int
|
||||||
C_ontmpfile, C_sequential;
|
C_ontmpfile, C_sequential;
|
||||||
extern Part
|
extern Part
|
||||||
*C_curr_part, *C_stable[];
|
*C_curr_part;
|
||||||
#ifdef INCORE
|
#ifdef INCORE
|
||||||
extern char
|
extern char
|
||||||
*C_current_out, *C_BASE;
|
*C_current_out, *C_BASE;
|
||||||
|
@ -59,14 +59,11 @@ extern int (*C_outpart)(), (*C_swtout)(), (*C_swttmp)();
|
||||||
extern File *C_ofp;
|
extern File *C_ofp;
|
||||||
|
|
||||||
#ifndef INCORE
|
#ifndef INCORE
|
||||||
extern File *C_tfr, *C_old_ofp;
|
extern File *C_tfr;
|
||||||
extern char *C_tmpfile;
|
extern char *C_tmpfile;
|
||||||
extern char *C_tmpdir;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern char *C_top;
|
extern char *C_top;
|
||||||
extern char *C_old_top;
|
|
||||||
extern char *C_old_opp;
|
|
||||||
extern char *C_ibuf;
|
extern char *C_ibuf;
|
||||||
|
|
||||||
#define put(c) if (C_opp == C_top) C_flush(); *C_opp++ = (c)
|
#define put(c) if (C_opp == C_top) C_flush(); *C_opp++ = (c)
|
||||||
|
|
Loading…
Reference in a new issue