GDB (API)
|
00001 /* Portable <regex.h>. 00002 Copyright (C) 2000-2013 Free Software Foundation, Inc. 00003 00004 This file is part of GDB. 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00018 00019 #ifndef GDB_REGEX_H 00020 #define GDB_REGEX_H 1 00021 00022 #ifdef USE_INCLUDED_REGEX 00023 # include "xregex.h" 00024 #else 00025 /* Request 4.2 BSD regex functions. */ 00026 # define _REGEX_RE_COMP 00027 # include <regex.h> 00028 #endif 00029 00030 /* From utils.c. */ 00031 struct cleanup *make_regfree_cleanup (regex_t *); 00032 char *get_regcomp_error (int, regex_t *); 00033 struct cleanup *compile_rx_or_error (regex_t *pattern, const char *rx, 00034 const char *message); 00035 00036 #endif /* not GDB_REGEX_H */