diff Objects/methodobject.c @ 284:6ac402023cac legacy-trunk

printobject now returns an error code
author Guido van Rossum <guido@python.org>
date Fri, 07 Jun 1991 16:10:43 +0000
parents 853b736a6a9e
children 659b8dbf695c
line wrap: on
line diff
--- a/Objects/methodobject.c	Fri Jun 07 14:31:11 1991 +0000
+++ b/Objects/methodobject.c	Fri Jun 07 16:10:43 1991 +0000
@@ -85,7 +85,7 @@
 	free((char *)m);
 }
 
-static void
+static int
 meth_print(m, fp, flags)
 	methodobject *m;
 	FILE *fp;
@@ -96,6 +96,7 @@
 	else
 		fprintf(fp, "<built-in method '%s' of some %s object>",
 			m->m_name, m->m_self->ob_type->tp_name);
+	return 0;
 }
 
 static object *