Make gdbpy_parameter static
authorTom Tromey <tom@tromey.com>
Thu, 9 Jun 2016 21:07:55 +0000 (15:07 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 24 Jun 2016 02:44:48 +0000 (20:44 -0600)
While working on the next patch in this series, I noticed that
gdbpy_parameter did not need to be exported.  This makes it "static".

2016-06-23  Tom Tromey  <tom@tromey.com>

* python/python.c (gdbpy_parameter): Now static.
* python/python-internal.h (gdbpy_parameter): Don't declare.

gdb/ChangeLog
gdb/python/python-internal.h
gdb/python/python.c

index 74f1c7e675769e823e947088c9f53fda37712c48..72e426e09de361a074347e49f8554c697abd3d94 100644 (file)
@@ -1,3 +1,8 @@
+2016-06-23  Tom Tromey  <tom@tromey.com>
+
+       * python/python.c (gdbpy_parameter): Now static.
+       * python/python-internal.h (gdbpy_parameter): Don't declare.
+
 2016-06-23  Tom Tromey  <tom@tromey.com>
 
        PR gdb/16483:
index 6a2619cd7166bf18cf9e743602ea4d52fb119613..7eb9aa40113b4046388c3f6b351cb9cf826679ff 100644 (file)
@@ -375,7 +375,6 @@ PyObject *gdbpy_create_ptid_object (ptid_t ptid);
 PyObject *gdbpy_selected_thread (PyObject *self, PyObject *args);
 PyObject *gdbpy_selected_inferior (PyObject *self, PyObject *args);
 PyObject *gdbpy_string_to_argv (PyObject *self, PyObject *args);
-PyObject *gdbpy_parameter (PyObject *self, PyObject *args);
 PyObject *gdbpy_parameter_value (enum var_types type, void *var);
 char *gdbpy_parse_command_name (const char *name,
                                struct cmd_list_element ***base_list,
index c177efe161631c4f15a52c4e90e79a9951006f74..3a272a9025c7cff32b87b366c5e5565611e42b05 100644 (file)
@@ -554,7 +554,7 @@ gdbpy_parameter_value (enum var_types type, void *var)
 /* A Python function which returns a gdb parameter's value as a Python
    value.  */
 
-PyObject *
+static PyObject *
 gdbpy_parameter (PyObject *self, PyObject *args)
 {
   struct gdb_exception except = exception_none;
This page took 0.028406 seconds and 4 git commands to generate.