Move declaration of overload_resolution to value.h
authorChristian Biesinger <cbiesinger@google.com>
Thu, 19 Sep 2019 04:40:15 +0000 (13:40 +0900)
committerChristian Biesinger <cbiesinger@google.com>
Fri, 20 Sep 2019 00:19:15 +0000 (09:19 +0900)
The variable is defined in valops.c and has an extern decl in
eval.c; move it to the header file.

gdb/ChangeLog:

2019-09-19  Christian Biesinger  <cbiesinger@google.com>

* eval.c: Move declaration of overload_resolution to...
* value.h: ...here.

gdb/ChangeLog
gdb/eval.c
gdb/value.h

index c7e724eb8b059d3d53db087ec55237c7977d7af9..41a002498dff1f1d260f82370a37c7850fd779bd 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-19  Christian Biesinger  <cbiesinger@google.com>
+
+       * eval.c: Move declaration of overload_resolution to...
+       * value.h: ...here.
+
 2019-09-19  Christian Biesinger  <cbiesinger@google.com>
 
        * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
index f8915b99578e6dfcad6b943c43a3336ed6f37423..70ba1f1e3fc59cb172d5a6101463e77d32a6dd47 100644 (file)
@@ -42,9 +42,6 @@
 #include "typeprint.h"
 #include <ctype.h>
 
-/* This is defined in valops.c */
-extern bool overload_resolution;
-
 /* Prototypes for local functions.  */
 
 static struct value *evaluate_subexp_for_sizeof (struct expression *, int *,
index 47bf672eb5dad6c04fc61eb61c34f015f02ace87..0d75eaa5b2143c472895087945d7ae813eecaedf 100644 (file)
@@ -81,6 +81,8 @@ struct value_print_options;
   value_contents_eq for more info.
 */
 
+extern bool overload_resolution;
+
 /* The structure which defines the type of a value.  It should never
    be possible for a program lval value to survive over a call to the
    inferior (i.e. to be put into the history list or an internal
This page took 0.032815 seconds and 4 git commands to generate.