diff options
author | Guido van Rossum <guido@python.org> | 1995-01-02 19:30:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-02 19:30:30 (GMT) |
commit | 3bbc62e9c25d4c006cd21d6b1314ccf0ba211382 (patch) | |
tree | 0b1a6d87c3bd250a62235f9df6ed9fffddbbabae /Modules/arraymodule.c | |
parent | 437a0e60baa6eabc2c853bee7ce1543481db8ca7 (diff) | |
download | cpython-3bbc62e9c25d4c006cd21d6b1314ccf0ba211382.zip cpython-3bbc62e9c25d4c006cd21d6b1314ccf0ba211382.tar.gz cpython-3bbc62e9c25d4c006cd21d6b1314ccf0ba211382.tar.bz2 |
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.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r-- | Modules/arraymodule.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 0dfe4f6..2584b03 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -239,10 +239,8 @@ newarrayobject(size, descr) 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 @@ ins1(self, where, v) int where; object *v; { - int i; char *items; if (v == NULL) { err_badcall(); @@ -366,7 +363,6 @@ static void array_dealloc(op) arrayobject *op; { - int i; if (op->ob_item != NULL) DEL(op->ob_item); DEL(op); @@ -422,7 +418,6 @@ array_slice(a, ilow, ihigh) int ilow, ihigh; { arrayobject *np; - int i; if (ilow < 0) ilow = 0; else if (ilow > a->ob_size) @@ -447,7 +442,6 @@ array_concat(a, bb) object *bb; { int size; - int i; arrayobject *np; if (!is_arrayobject(bb)) { err_badarg(); @@ -475,7 +469,7 @@ array_repeat(a, n) arrayobject *a; int n; { - int i, j; + int i; int size; arrayobject *np; char *p; @@ -504,7 +498,6 @@ array_ass_slice(a, ilow, ihigh, v) 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; |