Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.c @ 2055:cf31eab6ab5a legacy-trunk
Another bulky set of minor changes.
Note addition of gethostbyaddr() and improved repr() for sockets,
renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 02 Jan 1995 19:30:30 +0000 |
| parents | b167e3350491 |
| children | 172ba04a5191 |
line wrap: on
line diff
--- a/Modules/arraymodule.c Mon Jan 02 19:13:30 1995 +0000 +++ b/Modules/arraymodule.c Mon Jan 02 19:30:30 1995 +0000 @@ -239,10 +239,8 @@ int size; struct arraydescr *descr; { - int i; arrayobject *op; size_t nbytes; - int itemsize; if (size < 0) { err_badcall(); return NULL; @@ -308,7 +306,6 @@ int where; object *v; { - int i; char *items; if (v == NULL) { err_badcall(); @@ -366,7 +363,6 @@ array_dealloc(op) arrayobject *op; { - int i; if (op->ob_item != NULL) DEL(op->ob_item); DEL(op); @@ -422,7 +418,6 @@ int ilow, ihigh; { arrayobject *np; - int i; if (ilow < 0) ilow = 0; else if (ilow > a->ob_size) @@ -447,7 +442,6 @@ object *bb; { int size; - int i; arrayobject *np; if (!is_arrayobject(bb)) { err_badarg(); @@ -475,7 +469,7 @@ arrayobject *a; int n; { - int i, j; + int i; int size; arrayobject *np; char *p; @@ -504,7 +498,6 @@ char *item; int n; /* Size of replacement array */ int d; /* Change in size */ - int k; /* Loop index */ #define b ((arrayobject *)v) if (v == NULL) n = 0;
