Commit 719f5fa8 authored by Guido van Rossum's avatar Guido van Rossum

lint fix

parent dcc6ef21
...@@ -114,11 +114,12 @@ getintvalue(op) ...@@ -114,11 +114,12 @@ getintvalue(op)
/* Methods */ /* Methods */
/* ARGSUSED */
static int static int
int_print(v, fp, flags) int_print(v, fp, flags)
intobject *v; intobject *v;
FILE *fp; FILE *fp;
int flags; int flags; /* Not used but required by interface */
{ {
fprintf(fp, "%ld", v->ob_ival); fprintf(fp, "%ld", v->ob_ival);
return 0; return 0;
...@@ -239,7 +240,7 @@ int_mod(x, y) ...@@ -239,7 +240,7 @@ int_mod(x, y)
long d, m; long d, m;
if (i_divmod(x, y, &d, &m) < 0) if (i_divmod(x, y, &d, &m) < 0)
return NULL; return NULL;
newintobject(m); return newintobject(m);
} }
static object * static object *
......
...@@ -60,6 +60,13 @@ newstringobject(str) ...@@ -60,6 +60,13 @@ newstringobject(str)
return (object *) op; return (object *) op;
} }
void
stringdealloc(op)
object *op;
{
DEL(op);
}
unsigned int unsigned int
getstringsize(op) getstringsize(op)
register object *op; register object *op;
...@@ -305,7 +312,7 @@ typeobject Stringtype = { ...@@ -305,7 +312,7 @@ typeobject Stringtype = {
"string", "string",
sizeof(stringobject), sizeof(stringobject),
sizeof(char), sizeof(char),
free, /*tp_dealloc*/ stringdealloc, /*tp_dealloc*/
stringprint, /*tp_print*/ stringprint, /*tp_print*/
0, /*tp_getattr*/ 0, /*tp_getattr*/
0, /*tp_setattr*/ 0, /*tp_setattr*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment