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.
This commit is contained in:
Doug Evans
2013-11-29 12:00:47 -08:00
parent c9ae340d17
commit 256458bc0e
17 changed files with 126 additions and 106 deletions

View File

@ -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;
}