xref: /dflybsd-src/contrib/gdb-7/gdb/gdb_regex.h (revision de8e141f24382815c10a4012d209bbbf7abf1112)
15796c8dcSSimon Schubert /* Portable <regex.h>.
2*ef5ccd6cSJohn Marino    Copyright (C) 2000-2013 Free Software Foundation, Inc.
35796c8dcSSimon Schubert 
45796c8dcSSimon Schubert    This file is part of GDB.
55796c8dcSSimon Schubert 
65796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
75796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
85796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
95796c8dcSSimon Schubert    (at your option) any later version.
105796c8dcSSimon Schubert 
115796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
125796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
135796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
145796c8dcSSimon Schubert    GNU General Public License for more details.
155796c8dcSSimon Schubert 
165796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
175796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
185796c8dcSSimon Schubert 
195796c8dcSSimon Schubert #ifndef GDB_REGEX_H
205796c8dcSSimon Schubert #define GDB_REGEX_H 1
215796c8dcSSimon Schubert 
225796c8dcSSimon Schubert #ifdef USE_INCLUDED_REGEX
235796c8dcSSimon Schubert # include "xregex.h"
245796c8dcSSimon Schubert #else
255796c8dcSSimon Schubert /* Request 4.2 BSD regex functions.  */
265796c8dcSSimon Schubert # define _REGEX_RE_COMP
275796c8dcSSimon Schubert # include <regex.h>
285796c8dcSSimon Schubert #endif
295796c8dcSSimon Schubert 
30c50c785cSJohn Marino /* From utils.c.  */
31c50c785cSJohn Marino struct cleanup *make_regfree_cleanup (regex_t *);
32c50c785cSJohn Marino char *get_regcomp_error (int, regex_t *);
33c50c785cSJohn Marino 
345796c8dcSSimon Schubert #endif /* not GDB_REGEX_H */
35