hbase

heirloom base
git clone git://git.2f30.org/hbase
Log | Files | Refs | README

regexpr.h (2411B)


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