/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1982-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
#ifndef HIST_VERSION
/*
* Interface for history mechanism
* written by David Korn
*
*/
#include <ast.h>
typedef struct
{
#ifdef _HIST_PRIVATE
#endif /* _HIST_PRIVATE */
} History_t;
typedef struct
{
int hist_command;
int hist_line;
int hist_char;
} Histloc_t;
/* the following are readonly */
extern const char hist_fname[];
extern int _Hist;
/* these are the history interface routines */
extern int sh_histinit(void *);
extern void hist_cancel(History_t*);
extern void hist_close(History_t*);
extern int hist_copy(char*, int, int, int);
extern void hist_flush(History_t*);
extern char *hist_word(char*, int, int);
#if SHOPT_ESH
#endif /* SHOPT_ESH */
#endif /* HIST_VERSION */