heirloom-ed

annotate regexpr.h @ 1:db609ba8ab93

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