View | Details | Raw Unified
Collapse All | Expand All

(-) tf-40s1.orig/src/history.c (-12 lines)
 Lines 38-55    Link Here 
#define LOCALSIZE      100	/* local history size */
#define LOCALSIZE      100	/* local history size */
#define INPUTSIZE      100	/* command history buffer size */
#define INPUTSIZE      100	/* command history buffer size */
typedef struct History {	/* circular list of Alines, and logfile */
    struct Aline **alines;
    int size;			/* actual number of lines currently saved */
    int maxsize;		/* maximum number of lines that can be saved */
    int first;			/* position of first line in circular array */
    int last;			/* position of last line in circular array */
    int index;			/* current recall position */
    int total;			/* total number of lines ever saved */
    TFILE *logfile;
    CONST char *logname;
} History;
#define empty(hist) (!(hist)->alines || !(hist)->size)
#define empty(hist) (!(hist)->alines || !(hist)->size)
static void     FDECL(alloc_history,(History *hist, int maxsize));
static void     FDECL(alloc_history,(History *hist, int maxsize));
(-) tf-40s1.orig/src/history.h (+12 lines)
 Lines 31-36   extern void NDECL(free_histories); Link Here 
#define record_global(aline)  recordline(globalhist, (aline))
#define record_global(aline)  recordline(globalhist, (aline))
#define record_local(aline)   recordline(localhist, (aline))
#define record_local(aline)   recordline(localhist, (aline))
typedef struct History {	/* circular list of Alines, and logfile */
    struct Aline **alines;
    int size;			/* actual number of lines currently saved */
    int maxsize;		/* maximum number of lines that can be saved */
    int first;			/* position of first line in circular array */
    int last;			/* position of last line in circular array */
    int index;			/* current recall position */
    int total;			/* total number of lines ever saved */
    TFILE *logfile;
    CONST char *logname;
} History;
extern struct History globalhist[], localhist[];
extern struct History globalhist[], localhist[];
extern int log_count, norecord, nolog;
extern int log_count, norecord, nolog;