1*81565700SBaptiste Daroussin /*- 2*81565700SBaptiste Daroussin * Copyright (c) 2011 David E. O'Brien 3*81565700SBaptiste Daroussin * All rights reserved. 4*81565700SBaptiste Daroussin * 5*81565700SBaptiste Daroussin * Redistribution and use in source and binary forms, with or without 6*81565700SBaptiste Daroussin * modification, are permitted provided that the following conditions 7*81565700SBaptiste Daroussin * are met: 8*81565700SBaptiste Daroussin * 1. Redistributions of source code must retain the above copyright 9*81565700SBaptiste Daroussin * notice, this list of conditions and the following disclaimer. 10*81565700SBaptiste Daroussin * 2. Redistributions in binary form must reproduce the above copyright 11*81565700SBaptiste Daroussin * notice, this list of conditions and the following disclaimer in the 12*81565700SBaptiste Daroussin * documentation and/or other materials provided with the distribution. 13*81565700SBaptiste Daroussin * 3. Neither the name of the author nor the names of contributors 14*81565700SBaptiste Daroussin * may be used to endorse or promote products derived from this software 15*81565700SBaptiste Daroussin * without specific prior written permission. 16*81565700SBaptiste Daroussin * 17*81565700SBaptiste Daroussin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18*81565700SBaptiste Daroussin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19*81565700SBaptiste Daroussin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20*81565700SBaptiste Daroussin * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 21*81565700SBaptiste Daroussin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22*81565700SBaptiste Daroussin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23*81565700SBaptiste Daroussin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24*81565700SBaptiste Daroussin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25*81565700SBaptiste Daroussin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26*81565700SBaptiste Daroussin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27*81565700SBaptiste Daroussin * SUCH DAMAGE. 28*81565700SBaptiste Daroussin */ 29*81565700SBaptiste Daroussin 30*81565700SBaptiste Daroussin #include <edit/readline/readline.h> 31