diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1994-02-08 09:01:03 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1994-02-08 09:01:03 +0000 |
commit | ba47c66add7b9bd51af6ca2e6f45529bb38b9dd3 (patch) | |
tree | 163e9719bd6088df82940088d9dd3bd9da7bd9e1 /gdb/regex.c | |
parent | 7c202d3775a7ee8b313d538c874c1077d238d768 (diff) | |
download | gdb-ba47c66add7b9bd51af6ca2e6f45529bb38b9dd3.zip gdb-ba47c66add7b9bd51af6ca2e6f45529bb38b9dd3.tar.gz gdb-ba47c66add7b9bd51af6ca2e6f45529bb38b9dd3.tar.bz2 |
* README: Remove note about gcc warnings on alpha, these should be
gone now.
* c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
remote-utils.c, stabsread.c: Include <string.h>.
* regex.c: Include "defs.h", change re_comp argument to const char *.
* infptrace.c (fetch_register, store_inferior_registers): Change
regaddr to type CORE_ADDR.
* config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
Diffstat (limited to 'gdb/regex.c')
-rw-r--r-- | gdb/regex.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gdb/regex.c b/gdb/regex.c index d83740f..78b1f47 100644 --- a/gdb/regex.c +++ b/gdb/regex.c @@ -32,14 +32,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #else /* not emacs */ -/* Make alloca work the best possible way. */ -#ifdef __GNUC__ -#define alloca __builtin_alloca -#else -#ifdef sparc -#include <alloca.h> -#endif -#endif +#include "defs.h" +#include <string.h> /* * Define the syntax stuff, so we can do the \<...\> things. @@ -1556,7 +1550,7 @@ static struct re_pattern_buffer re_comp_buf; char * re_comp (s) - char *s; + const char *s; { if (!s) { |