xref: /netbsd-src/tests/lib/libc/regex/test_regex.h (revision 17f9a364e668e2a515980aeea268264bdfd1c52d)
1*17f9a364Spgoyette /*	$NetBSD: test_regex.h,v 1.1 2011/01/08 18:10:31 pgoyette Exp $	*/
2*17f9a364Spgoyette 
3*17f9a364Spgoyette /*-
4*17f9a364Spgoyette  * Copyright (c) 2011 The NetBSD Foundation, Inc.
5*17f9a364Spgoyette  * All rights reserved.
6*17f9a364Spgoyette  *
7*17f9a364Spgoyette  * This code is derived from software contributed to The NetBSD Foundation
8*17f9a364Spgoyette  * by
9*17f9a364Spgoyette  *
10*17f9a364Spgoyette  * Redistribution and use in source and binary forms, with or without
11*17f9a364Spgoyette  * modification, are permitted provided that the following conditions
12*17f9a364Spgoyette  * are met:
13*17f9a364Spgoyette  * 1. Redistributions of source code must retain the above copyright
14*17f9a364Spgoyette  *    notice, this list of conditions and the following disclaimer.
15*17f9a364Spgoyette  * 2. Redistributions in binary form must reproduce the above copyright
16*17f9a364Spgoyette  *    notice, this list of conditions and the following disclaimer in the
17*17f9a364Spgoyette  *    documentation and/or other materials provided with the distribution.
18*17f9a364Spgoyette  *
19*17f9a364Spgoyette  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20*17f9a364Spgoyette  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21*17f9a364Spgoyette  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22*17f9a364Spgoyette  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23*17f9a364Spgoyette  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24*17f9a364Spgoyette  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25*17f9a364Spgoyette  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26*17f9a364Spgoyette  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27*17f9a364Spgoyette  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28*17f9a364Spgoyette  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29*17f9a364Spgoyette  * POSSIBILITY OF SUCH DAMAGE.
30*17f9a364Spgoyette  */
31*17f9a364Spgoyette 
32*17f9a364Spgoyette /* from main.c */
33*17f9a364Spgoyette void regress(FILE *);
34*17f9a364Spgoyette void try(char *, char *, char *, char *, char *, int);
35*17f9a364Spgoyette int options(int, char *);
36*17f9a364Spgoyette int opt(int, char *);
37*17f9a364Spgoyette void fixstr(char *);
38*17f9a364Spgoyette char *check(char *, regmatch_t, char *);
39*17f9a364Spgoyette 
40*17f9a364Spgoyette /* from split.c */
41*17f9a364Spgoyette int split(char *string, char *fields[], int nfields, const char *sep);
42*17f9a364Spgoyette 
43*17f9a364Spgoyette /* from debug.c */
44*17f9a364Spgoyette void regprint(regex_t *r, FILE *d);
45