This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfa] missing include in c-lang.c


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

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);



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]