heirloom-ed
diff regexpr.h @ 0:1493bea5ac22
Initial version of the standalone heirloom-ed
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Mon, 05 Sep 2011 16:31:35 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/regexpr.h Mon Sep 05 16:31:35 2011 +0200 1.3 @@ -0,0 +1,53 @@ 1.4 +/* 1.5 + * Simple Regular Expression functions. Derived from Unix 7th Edition, 1.6 + * /usr/src/cmd/expr.y 1.7 + * 1.8 + * Modified by Gunnar Ritter, Freiburg i. Br., Germany, January 2003. 1.9 + * 1.10 + * Copyright(C) Caldera International Inc. 2001-2002. All rights reserved. 1.11 + * 1.12 + * Redistribution and use in source and binary forms, with or without 1.13 + * modification, are permitted provided that the following conditions 1.14 + * are met: 1.15 + * Redistributions of source code and documentation must retain the 1.16 + * above copyright notice, this list of conditions and the following 1.17 + * disclaimer. 1.18 + * Redistributions in binary form must reproduce the above copyright 1.19 + * notice, this list of conditions and the following disclaimer in the 1.20 + * documentation and/or other materials provided with the distribution. 1.21 + * All advertising materials mentioning features or use of this software 1.22 + * must display the following acknowledgement: 1.23 + * This product includes software developed or owned by Caldera 1.24 + * International, Inc. 1.25 + * Neither the name of Caldera International, Inc. nor the names of 1.26 + * other contributors may be used to endorse or promote products 1.27 + * derived from this software without specific prior written permission. 1.28 + * 1.29 + * USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA 1.30 + * INTERNATIONAL, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR 1.31 + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 1.32 + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1.33 + * ARE DISCLAIMED. IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE 1.34 + * LIABLE FOR ANY DIRECT, INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR 1.35 + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1.36 + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 1.37 + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 1.38 + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 1.39 + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 1.40 + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1.41 + */ 1.42 + 1.43 +/* Sccsid @(#)regexpr.h 1.2 (gritter) 1/11/03 */ 1.44 + 1.45 +#define NBRA 9 1.46 + 1.47 +extern char *braslist[NBRA]; 1.48 +extern char *braelist[NBRA]; 1.49 +extern int nbra; 1.50 +extern int regerrno, reglength; 1.51 +extern char *loc1, *loc2, *locs; 1.52 +extern int sed; 1.53 + 1.54 +extern char *compile(const char *, char *, char *); 1.55 +extern int step(const char *, const char *); 1.56 +extern int advance(const char *, const char *);