2003-01-02 19:35:31 +00:00
|
|
|
/* Portable <regex.h>.
|
2015-01-01 09:32:14 +00:00
|
|
|
Copyright (C) 2000-2015 Free Software Foundation, Inc.
|
2000-04-04 02:08:52 +00:00
|
|
|
|
|
|
|
This file is part of GDB.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2007-08-23 18:08:50 +00:00
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
2000-04-04 02:08:52 +00:00
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2007-08-23 18:08:50 +00:00
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
2000-04-04 02:08:52 +00:00
|
|
|
|
2015-07-15 18:27:32 +00:00
|
|
|
#ifndef GDB_REGEX_H
|
|
|
|
#define GDB_REGEX_H 1
|
2001-09-01 21:38:05 +00:00
|
|
|
|
2000-04-04 02:08:52 +00:00
|
|
|
#ifdef USE_INCLUDED_REGEX
|
2003-01-02 19:35:31 +00:00
|
|
|
# include "xregex.h"
|
2000-04-04 02:08:52 +00:00
|
|
|
#else
|
2003-01-02 19:35:31 +00:00
|
|
|
/* Request 4.2 BSD regex functions. */
|
|
|
|
# define _REGEX_RE_COMP
|
|
|
|
# include <regex.h>
|
2000-04-04 02:08:52 +00:00
|
|
|
#endif
|
2001-09-01 21:38:05 +00:00
|
|
|
|
2015-07-15 18:27:32 +00:00
|
|
|
/* From utils.c. */
|
2011-01-17 16:50:42 +00:00
|
|
|
struct cleanup *make_regfree_cleanup (regex_t *);
|
|
|
|
char *get_regcomp_error (int, regex_t *);
|
2013-04-15 18:13:01 +00:00
|
|
|
struct cleanup *compile_rx_or_error (regex_t *pattern, const char *rx,
|
|
|
|
const char *message);
|
2011-01-17 16:50:42 +00:00
|
|
|
|
2015-07-15 18:27:32 +00:00
|
|
|
#endif /* not GDB_REGEX_H */
|