This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] Eliminate some extern's in .c
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 15 May 2003 18:14:31 -0400
- Subject: [ob] Eliminate some extern's in .c
Hello,
This eliminates several "extern inspect_it" and one "extern
repeat_count_threshold". Obvious (I'm left wondering what the original
author of this was thinking :-/).
committed,
Andrew
2003-05-15 Andrew Cagney <cagney@redhat.com>
* c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
* p-valprint.c (pascal_object_print_value_fields): Ditto.
* p-lang.c (pascal_printstr): Ditto.
* objc-lang.c (objc_printstr): Ditto.
* m2-lang.c (m2_printstr): Ditto.
* jv-valprint.c (java_print_value_fields): Ditto.
* f-lang.c (f_printstr): Ditto.
* cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
* ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
for repeat_count_threshold.
* Makefile.in (cp-valprint.o): Update dependencies.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.376
diff -u -r1.376 Makefile.in
--- Makefile.in 14 May 2003 16:14:25 -0000 1.376
+++ Makefile.in 15 May 2003 22:01:27 -0000
@@ -1628,7 +1628,7 @@
cp-valprint.o: cp-valprint.c $(defs_h) $(gdb_obstack_h) $(symtab_h) \
$(gdbtypes_h) $(expression_h) $(value_h) $(command_h) $(gdbcmd_h) \
$(demangle_h) $(annotate_h) $(gdb_string_h) $(c_lang_h) $(target_h) \
- $(cp_abi_h)
+ $(cp_abi_h) $(valprint_h)
cpu32bug-rom.o: cpu32bug-rom.c $(defs_h) $(gdbcore_h) $(target_h) \
$(monitor_h) $(serial_h) $(regcache_h) $(m68k_tdep_h)
cris-tdep.o: cris-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(inferior_h) \
Index: ada-valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/ada-valprint.c,v
retrieving revision 1.7
diff -u -r1.7 ada-valprint.c
--- ada-valprint.c 21 Apr 2003 16:48:37 -0000 1.7
+++ ada-valprint.c 15 May 2003 22:01:27 -0000
@@ -46,9 +46,6 @@
enum val_prettyprint pretty;
};
-extern int inspect_it;
-extern unsigned int repeat_count_threshold;
-
static void print_record (struct type *, char *, struct ui_file *, int,
int, enum val_prettyprint);
Index: c-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/c-lang.c,v
retrieving revision 1.19
diff -u -r1.19 c-lang.c
--- c-lang.c 8 May 2003 17:35:21 -0000 1.19
+++ c-lang.c 15 May 2003 22:01:27 -0000
@@ -91,7 +91,6 @@
unsigned int things_printed = 0;
int in_quotes = 0;
int need_comma = 0;
- extern int inspect_it;
/* If the string was not truncated due to `set print elements', and
the last byte of it is a null, we don't print that, in traditional C
Index: cp-valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/cp-valprint.c,v
retrieving revision 1.20
diff -u -r1.20 cp-valprint.c
--- cp-valprint.c 14 Apr 2003 08:47:42 -0000 1.20
+++ cp-valprint.c 15 May 2003 22:01:28 -0000
@@ -34,6 +34,7 @@
#include "c-lang.h"
#include "target.h"
#include "cp-abi.h"
+#include "valprint.h"
/* Indication of presence of HP-compiled object files */
extern int hp_som_som_object_present; /* defined in symtab.c */
@@ -266,8 +267,6 @@
fprintf_filtered (stream, "<No data fields>");
else
{
- extern int inspect_it;
-
if (dont_print_statmem == 0)
{
/* If we're at top level, carve out a completely fresh
Index: f-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/f-lang.c,v
retrieving revision 1.13
diff -u -r1.13 f-lang.c
--- f-lang.c 2 Apr 2003 03:02:46 -0000 1.13
+++ f-lang.c 15 May 2003 22:01:28 -0000
@@ -167,7 +167,6 @@
unsigned int things_printed = 0;
int in_quotes = 0;
int need_comma = 0;
- extern int inspect_it;
if (length == 0)
{
Index: jv-valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/jv-valprint.c,v
retrieving revision 1.12
diff -u -r1.12 jv-valprint.c
--- jv-valprint.c 21 Feb 2003 02:49:12 -0000 1.12
+++ jv-valprint.c 15 May 2003 22:01:28 -0000
@@ -301,7 +301,6 @@
fprintf_filtered (stream, "<No data fields>");
else
{
- extern int inspect_it;
int fields_seen = 0;
for (i = n_baseclasses; i < len; i++)
Index: m2-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/m2-lang.c,v
retrieving revision 1.9
diff -u -r1.9 m2-lang.c
--- m2-lang.c 2 Apr 2003 03:02:46 -0000 1.9
+++ m2-lang.c 15 May 2003 22:01:29 -0000
@@ -116,7 +116,6 @@
unsigned int things_printed = 0;
int in_quotes = 0;
int need_comma = 0;
- extern int inspect_it;
if (length == 0)
{
Index: objc-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/objc-lang.c,v
retrieving revision 1.21
diff -u -r1.21 objc-lang.c
--- objc-lang.c 14 May 2003 17:43:18 -0000 1.21
+++ objc-lang.c 15 May 2003 22:01:35 -0000
@@ -372,7 +372,6 @@
unsigned int things_printed = 0;
int in_quotes = 0;
int need_comma = 0;
- extern int inspect_it;
/* If the string was not truncated due to `set print elements', and
the last byte of it is a null, we don't print that, in
Index: p-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/p-lang.c,v
retrieving revision 1.11
diff -u -r1.11 p-lang.c
--- p-lang.c 2 Apr 2003 03:02:46 -0000 1.11
+++ p-lang.c 15 May 2003 22:01:36 -0000
@@ -161,7 +161,6 @@
unsigned int things_printed = 0;
int in_quotes = 0;
int need_comma = 0;
- extern int inspect_it;
/* If the string was not truncated due to `set print elements', and
the last byte of it is a null, we don't print that, in traditional C
Index: p-valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/p-valprint.c,v
retrieving revision 1.17
diff -u -r1.17 p-valprint.c
--- p-valprint.c 14 May 2003 17:43:18 -0000 1.17
+++ p-valprint.c 15 May 2003 22:01:36 -0000
@@ -755,7 +755,6 @@
fprintf_filtered (stream, "<No data fields>");
else
{
- extern int inspect_it;
int fields_seen = 0;
if (dont_print_statmem == 0)