2010-05-17 Michael Snyder <msnyder@vmware.com>
* python/py-auto-load.c: White space. * python/py-block.c: White space. * python/py-breakpoint.c: White space. * python/py-cmd.c: White space. * python/py-function.c: White space. * python/py-lazy-string.c: White space. * python/py-objfile.c: White space. * python/py-param.c: White space. * python/py-prettyprint.c: White space. * python/py-progspace.c: White space. * python/py-symtab.c: White space. * python/python.c: White space. * python/py-type.c: White space. * python/py-utils.c: White space. * python/py-value.c: White space.
This commit is contained in:
parent
102040f0d0
commit
d59b6f6c38
16 changed files with 82 additions and 3 deletions
|
@ -45,6 +45,7 @@ static PyObject *
|
|||
objfpy_get_filename (PyObject *self, void *closure)
|
||||
{
|
||||
objfile_object *obj = (objfile_object *) self;
|
||||
|
||||
if (obj->objfile && obj->objfile->name)
|
||||
return PyString_Decode (obj->objfile->name, strlen (obj->objfile->name),
|
||||
host_charset (), NULL);
|
||||
|
@ -55,6 +56,7 @@ static void
|
|||
objfpy_dealloc (PyObject *o)
|
||||
{
|
||||
objfile_object *self = (objfile_object *) o;
|
||||
|
||||
Py_XDECREF (self->printers);
|
||||
self->ob_type->tp_free ((PyObject *) self);
|
||||
}
|
||||
|
@ -63,6 +65,7 @@ static PyObject *
|
|||
objfpy_new (PyTypeObject *type, PyObject *args, PyObject *keywords)
|
||||
{
|
||||
objfile_object *self = (objfile_object *) type->tp_alloc (type, 0);
|
||||
|
||||
if (self)
|
||||
{
|
||||
self->objfile = NULL;
|
||||
|
@ -81,6 +84,7 @@ PyObject *
|
|||
objfpy_get_printers (PyObject *o, void *ignore)
|
||||
{
|
||||
objfile_object *self = (objfile_object *) o;
|
||||
|
||||
Py_INCREF (self->printers);
|
||||
return self->printers;
|
||||
}
|
||||
|
@ -90,6 +94,7 @@ objfpy_set_printers (PyObject *o, PyObject *value, void *ignore)
|
|||
{
|
||||
PyObject *tmp;
|
||||
objfile_object *self = (objfile_object *) o;
|
||||
|
||||
if (! value)
|
||||
{
|
||||
PyErr_SetString (PyExc_TypeError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue