WinDBG/Exts/CodeAnalyzer/gdbplus/gdb-7.7/gdb/python/py-heap.c
/* Called by the Python interpreter to obtain string representation
 of the object.  */
Called by the Python interpreter to obtain string representation
of the object.
Called by the Python interpreter to obtain string representation of the object .
static PyObject *
heap_block_object_str (PyObject *obj)
{
	heap_block_object* self = (heap_block_object*) obj;
	PyObject *args, *result;
	static PyObject *format = NULL;
	if (format == NULL)
	{
		format = PyString_FromString("heap block addr=0x%lx size=%ld inuse=%d");
		if (format == NULL)
			return NULL;
	}
	args = Py_BuildValue("(OOO)", self->address, self->size, self->inuse);
	if (args == NULL)
		return NULL;
	result = PyString_Format(format, args);
	Py_DECREF(args);
	return result;
}
static PyObject * heap_block_object_str ( PyObject * obj ) { heap_block_object * self = ( heap_block_object * ) obj ; PyObject * args , * result ; static PyObject * format = NULL ; if ( format == NULL ) { format = PyString_FromString ( " " ) ; if ( format == NULL ) return NULL ; } args = Py_BuildValue ( " " , self -> address , self -> size , self -> inuse ) ; if ( args == NULL ) return NULL ; result = PyString_Format ( format , args ) ; Py_DECREF ( args ) ; return result ; }
Called by the Python interpreter to obtain string representation
of the object.
Called by the Python interpreter to obtain string representation of the object .