meillo@0: /* meillo@0: * Simple Regular Expression functions. Derived from Unix 7th Edition, meillo@0: * /usr/src/cmd/expr.y meillo@0: * meillo@0: * Modified by Gunnar Ritter, Freiburg i. Br., Germany, January 2003. meillo@0: * meillo@0: * Copyright(C) Caldera International Inc. 2001-2002. All rights reserved. meillo@0: * meillo@0: * Redistribution and use in source and binary forms, with or without meillo@0: * modification, are permitted provided that the following conditions meillo@0: * are met: meillo@0: * Redistributions of source code and documentation must retain the meillo@0: * above copyright notice, this list of conditions and the following meillo@0: * disclaimer. meillo@0: * Redistributions in binary form must reproduce the above copyright meillo@0: * notice, this list of conditions and the following disclaimer in the meillo@0: * documentation and/or other materials provided with the distribution. meillo@0: * All advertising materials mentioning features or use of this software meillo@0: * must display the following acknowledgement: meillo@0: * This product includes software developed or owned by Caldera meillo@0: * International, Inc. meillo@0: * Neither the name of Caldera International, Inc. nor the names of meillo@0: * other contributors may be used to endorse or promote products meillo@0: * derived from this software without specific prior written permission. meillo@0: * meillo@0: * USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA meillo@0: * INTERNATIONAL, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR meillo@0: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED meillo@0: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE meillo@0: * ARE DISCLAIMED. IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE meillo@0: * LIABLE FOR ANY DIRECT, INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR meillo@0: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF meillo@0: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR meillo@0: * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, meillo@0: * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE meillo@0: * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, meillo@0: * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. meillo@0: */ meillo@0: meillo@0: /* Sccsid @(#)regexpr.h 1.2 (gritter) 1/11/03 */ meillo@0: meillo@0: #define NBRA 9 meillo@0: meillo@0: extern char *braslist[NBRA]; meillo@0: extern char *braelist[NBRA]; meillo@0: extern int nbra; meillo@0: extern int regerrno, reglength; meillo@0: extern char *loc1, *loc2, *locs; meillo@0: extern int sed; meillo@0: meillo@0: extern char *compile(const char *, char *, char *); meillo@0: extern int step(const char *, const char *); meillo@0: extern int advance(const char *, const char *);