myhistedit.h revision 200956
1224762Smarius/*- 2214921Scognet * Copyright (c) 1993 3214921Scognet * The Regents of the University of California. All rights reserved. 4214921Scognet * 5214921Scognet * Redistribution and use in source and binary forms, with or without 6214921Scognet * modification, are permitted provided that the following conditions 7214921Scognet * are met: 8214921Scognet * 1. Redistributions of source code must retain the above copyright 9214921Scognet * notice, this list of conditions and the following disclaimer. 10214921Scognet * 2. Redistributions in binary form must reproduce the above copyright 11214921Scognet * notice, this list of conditions and the following disclaimer in the 12214921Scognet * documentation and/or other materials provided with the distribution. 13214921Scognet * 4. Neither the name of the University nor the names of its contributors 14214921Scognet * may be used to endorse or promote products derived from this software 15214921Scognet * without specific prior written permission. 16214921Scognet * 17214921Scognet * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 18214921Scognet * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19214921Scognet * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20214921Scognet * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 21214921Scognet * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22214921Scognet * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23214921Scognet * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24214921Scognet * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25214921Scognet * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26214921Scognet * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27214921Scognet * SUCH DAMAGE. 28214921Scognet * 29214921Scognet * @(#)myhistedit.h 8.2 (Berkeley) 5/4/95 30214921Scognet * $FreeBSD: head/bin/sh/myhistedit.h 200956 2009-12-24 18:41:14Z jilles $ 31214921Scognet */ 32214921Scognet 33214921Scognet#include <histedit.h> 34214921Scognet 35214921Scognetextern History *hist; 36214921Scognetextern EditLine *el; 37214921Scognetextern int displayhist; 38214921Scognet 39214921Scognetvoid histedit(void); 40214921Scognetvoid sethistsize(const char *); 41214921Scognetint histcmd(int, char **); 42214921Scognetint not_fcnumber(const char *); 43214921Scognetint str_to_event(const char *, int); 44214921Scognetint bindcmd(int, char **); 45214921Scognet 46214921Scognet