diff options
author | Mark Kettenis <kettenis@gnu.org> | 2001-09-01 21:38:05 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2001-09-01 21:38:05 +0000 |
commit | f77b92bf112a522955bfff95faf1541738030da9 (patch) | |
tree | b97c70bade8393ff29ba3b6618c740918f245a34 /gdb/gdb_regex.h | |
parent | 524f76c97ebd0fadd977a5ef8b70acccbfa4bbd9 (diff) | |
download | gdb-f77b92bf112a522955bfff95faf1541738030da9.zip gdb-f77b92bf112a522955bfff95faf1541738030da9.tar.gz gdb-f77b92bf112a522955bfff95faf1541738030da9.tar.bz2 |
Make GDB use libiberty regex implementation.
* gdb_regex.h: Normalize protection against multiple inclusion.
Include "xregex.h" instead of "gnu-regex.h".
* cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
* cli/cli-decode.c: Likewise.
* Makefile.in (REGEX): Remove.
(GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
(ADD_FILES, ADD_DEPS): Remove $(REGEX).
(POSSLIBS): Remove.
(TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
(irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
gdb_regex.h in list of dependencies.
(gnu-regex.o): Remove rule.
* gnu-regex.c, gnu-regex.h: Remove files.
Diffstat (limited to 'gdb/gdb_regex.h')
-rw-r--r-- | gdb/gdb_regex.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/gdb_regex.h b/gdb/gdb_regex.h index 09aaf08..27a570a 100644 --- a/gdb/gdb_regex.h +++ b/gdb/gdb_regex.h @@ -1,5 +1,5 @@ /* Portable <regex.h> - Copyright 2000 Free Software Foundation, Inc. + Copyright 2000, 2001 Free Software Foundation, Inc. This file is part of GDB. @@ -18,11 +18,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef _GDB_REGEX_H -#define _GDB_REGEX_H +#ifndef GDB_REGEX_H +#define GDB_REGEX_H + #ifdef USE_INCLUDED_REGEX -#include "gnu-regex.h" +#include "xregex.h" #else #include <regex.h> #endif -#endif /* _GDB_REGEX_H */ + +#endif /* gdb_regex.h */ |