diff options
author | Doug Evans <xdje42@gmail.com> | 2013-11-29 12:00:47 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2013-11-29 12:00:47 -0800 |
commit | 256458bc0ed6b39c34afefb60d2b1009603fd62a (patch) | |
tree | de6071fd88ee670a6228a55bca2d954e0aa62694 /gdb/python/py-param.c | |
parent | c9ae340d17015d64f6959ea63ca80a26af5540be (diff) | |
download | gdb-256458bc0ed6b39c34afefb60d2b1009603fd62a.zip gdb-256458bc0ed6b39c34afefb60d2b1009603fd62a.tar.gz gdb-256458bc0ed6b39c34afefb60d2b1009603fd62a.tar.bz2 |
Remove trailing whitespace.
Whitespace cleanup.
* python/py-breakpoint.c: Remove trailing whitespace.
* python/py-cmd.c: Ditto.
* python/py-evts.c: Ditto.
* python/py-finishbreakpoint.c: Ditto.
* python/py-frame.c: Ditto.
* python/py-function.c: Ditto.
* python/py-inferior.c: Ditto.
* python/py-infthread.c: Ditto.
* python/py-param.c: Ditto.
* python/py-prettyprint.c: Ditto.
* python/py-symbol.c: Ditto.
* python/py-type.c: Ditto.
* python/py-utils.c: Ditto.
* python/py-value.c: Ditto.
* python/python-internal.h: Ditto.
* python/python.c: Ditto.
Diffstat (limited to 'gdb/python/py-param.c')
-rw-r--r-- | gdb/python/py-param.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c index 9f56c3a..e767128 100644 --- a/gdb/python/py-param.c +++ b/gdb/python/py-param.c @@ -134,7 +134,7 @@ set_parameter_value (parmpy_object *self, PyObject *value) && (self->type == var_filename || value != Py_None)) { - PyErr_SetString (PyExc_RuntimeError, + PyErr_SetString (PyExc_RuntimeError, _("String required for filename.")); return -1; @@ -167,7 +167,7 @@ set_parameter_value (parmpy_object *self, PyObject *value) if (! gdbpy_is_string (value)) { - PyErr_SetString (PyExc_RuntimeError, + PyErr_SetString (PyExc_RuntimeError, _("ENUM arguments must be a string.")); return -1; } @@ -192,12 +192,12 @@ set_parameter_value (parmpy_object *self, PyObject *value) case var_boolean: if (! PyBool_Check (value)) { - PyErr_SetString (PyExc_RuntimeError, + PyErr_SetString (PyExc_RuntimeError, _("A boolean argument is required.")); return -1; } cmp = PyObject_IsTrue (value); - if (cmp < 0) + if (cmp < 0) return -1; self->value.intval = cmp; break; @@ -216,10 +216,10 @@ set_parameter_value (parmpy_object *self, PyObject *value) { cmp = PyObject_IsTrue (value); if (cmp < 0 ) - return -1; + return -1; if (cmp == 1) self->value.autoboolval = AUTO_BOOLEAN_TRUE; - else + else self->value.autoboolval = AUTO_BOOLEAN_FALSE; } break; @@ -233,7 +233,7 @@ set_parameter_value (parmpy_object *self, PyObject *value) if (! PyInt_Check (value)) { - PyErr_SetString (PyExc_RuntimeError, + PyErr_SetString (PyExc_RuntimeError, _("The value must be integer.")); return -1; } @@ -258,7 +258,7 @@ set_parameter_value (parmpy_object *self, PyObject *value) if (! ok) { - PyErr_SetString (PyExc_RuntimeError, + PyErr_SetString (PyExc_RuntimeError, _("Range exceeded.")); return -1; } @@ -268,7 +268,7 @@ set_parameter_value (parmpy_object *self, PyObject *value) } default: - PyErr_SetString (PyExc_RuntimeError, + PyErr_SetString (PyExc_RuntimeError, _("Unhandled type in parameter value.")); return -1; } @@ -580,7 +580,7 @@ compute_enum_values (parmpy_object *self, PyObject *enum_values) if (! PySequence_Check (enum_values)) { - PyErr_SetString (PyExc_RuntimeError, + PyErr_SetString (PyExc_RuntimeError, _("The enumeration is not a sequence.")); return 0; } @@ -590,7 +590,7 @@ compute_enum_values (parmpy_object *self, PyObject *enum_values) return 0; if (size == 0) { - PyErr_SetString (PyExc_RuntimeError, + PyErr_SetString (PyExc_RuntimeError, _("The enumeration is empty.")); return 0; } @@ -612,7 +612,7 @@ compute_enum_values (parmpy_object *self, PyObject *enum_values) { Py_DECREF (item); do_cleanups (back_to); - PyErr_SetString (PyExc_RuntimeError, + PyErr_SetString (PyExc_RuntimeError, _("The enumeration item not a string.")); return 0; } |