Copyright (c) Cristian Gafton, 1996-1997, 9: * All rights reserved. 10: * 11: * Redistribution and use in source and binary forms, with or without 12: * modification, are permitted provided that the following conditions 13: * are met: 14: * 1. Redistributions of source code must retain the above copyright 15: * notice, and the entire permission notice in its entirety, 16: * including the disclaimer of warranties. 17: * 2. Redistributions in binary form must reproduce the above copyright 18: * notice, this list of conditions and the following disclaimer in the 19: * documentation and/or other materials provided with the distribution. 20: * 3. The name of the author may not be used to endorse or promote 21: * products derived from this software without specific prior 22: * written permission. 23: * 24: * ALTERNATIVELY, this product may be distributed under the terms of 25: * the GNU Public License, in which case the provisions of the GPL are 26: * required INSTEAD OF the above restrictions. (This clause is 27: * necessary due to a potential bad interaction between the GPL and 28: * the restrictions contained in a BSD-style copyright.) 29: * 30: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 31: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 32: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 33: * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 34: * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 35: * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 36: * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 37: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 38: * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 39: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 40: * OF THE POSSIBILITY OF SUCH DAMAGE.