This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: make value_find_oload_method_list static
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 15 Jun 2012 08:38:01 -0600
- Subject: FYI: make value_find_oload_method_list static
I'm checking this in.
While working on another patch, I realized that
value_find_oload_method_list could be static.
Tom
2012-06-15 Tom Tromey <tromey@redhat.com>
* valops.c (value_find_oload_method_list): Now static.
* value.h (value_find_oload_method_list): Don't declare.
Index: valops.c
===================================================================
RCS file: /cvs/src/src/gdb/valops.c,v
retrieving revision 1.295
diff -u -r1.295 valops.c
--- valops.c 15 Jun 2012 14:35:33 -0000 1.295
+++ valops.c 15 Jun 2012 14:37:13 -0000
@@ -2512,7 +2512,7 @@
method.
BOFFSET is the offset of the base subobject which defines the method. */
-struct fn_field *
+static struct fn_field *
value_find_oload_method_list (struct value **argp, const char *method,
int offset, int *num_fns,
struct type **basetype, int *boffset)
Index: value.h
===================================================================
RCS file: /cvs/src/src/gdb/value.h,v
retrieving revision 1.207
diff -u -r1.207 value.h
--- value.h 13 Jun 2012 15:50:19 -0000 1.207
+++ value.h 15 Jun 2012 14:37:13 -0000
@@ -642,11 +642,6 @@
extern struct value *value_static_field (struct type *type, int fieldno);
-extern struct fn_field *value_find_oload_method_list (struct value **,
- const char *,
- int, int *,
- struct type **, int *);
-
enum oload_search_type { NON_METHOD, METHOD, BOTH };
extern int find_overload_match (struct value **args, int nargs,