This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa] missing include in c-lang.c
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: Andrew Cagney <ac131313 at ges dot redhat dot com>
- Cc: David Carlton <carlton at math dot stanford dot edu>,gdb-patches at sources dot redhat dot com
- Date: Fri, 20 Sep 2002 13:53:41 -0400
- Subject: Re: [rfa] missing include in c-lang.c
- References: <ro1bs6svb3h.fsf@jackfruit.Stanford.EDU><3D8B5882.7040508@ges.redhat.com>
Andrew Cagney writes:
> > c-lang.c calls strcmp(), but it doesn't seem to be declared anywhere,
> > so I think it should #include "gdb_string.h".
> >
> > I suppose that I really should just commit this as obvious, but I'm
> > doing an RFA anyways.
>
> Yes, obvious.
>
> Andrew
>
Makefile.in should be updated too.
Elena
> > David Carlton
> > carlton@math.stanford.edu
> >
> > 2002-09-20 David Carlton <carlton@math.stanford.edu>
> >
> > * c-lang.c: #include "gdb_string.h"
> >
> > Index: c-lang.c
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/c-lang.c,v
> > retrieving revision 1.15
> > diff -u -p -r1.15 c-lang.c
> > --- c-lang.c 20 Sep 2002 00:24:01 -0000 1.15
> > +++ c-lang.c 20 Sep 2002 17:09:33 -0000
> > @@ -30,6 +30,7 @@
> > #include "macroscope.h"
> > #include "gdb_assert.h"
> > #include "charset.h"
> > +#include "gdb_string.h"
> >
> > extern void _initialize_c_language (void);
> > static void c_emit_char (int c, struct ui_file * stream, int quoter);
> >
>