From d4cffe067f71e3feb8a87d0beff6b3258b563d0d Mon Sep 17 00:00:00 2001 From: hobbs Date: Thu, 5 Aug 1999 16:57:48 +0000 Subject: 1999-08-05 Jeff Hobbs * library/http2.1/http.tcl: Made use of "i" in init section not use global var and start at 0 (was 1). [Bug: 2502] --- library/http/http.tcl | 5 +++-- library/http2.1/http.tcl | 5 +++-- library/http2.3/http.tcl | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/library/http/http.tcl b/library/http/http.tcl index bf06cc3..f448077 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -9,7 +9,7 @@ # See the file "license.terms" for information on usage and # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: http.tcl,v 1.8 1999/07/20 00:11:52 hershey Exp $ +# RCS: @(#) $Id: http.tcl,v 1.9 1999/08/05 16:57:48 hobbs Exp $ package provide http 2.1 ;# This uses Tcl namespaces @@ -27,7 +27,8 @@ namespace eval http { variable formMap set alphanumeric a-zA-Z0-9 - for {set i 1} {$i <= 256} {incr i} { + variable i 0 + for {} {$i <= 256} {incr i} { set c [format %c $i] if {![string match \[$alphanumeric\] $c]} { set formMap($c) %[format %.2x $i] diff --git a/library/http2.1/http.tcl b/library/http2.1/http.tcl index bf06cc3..f448077 100644 --- a/library/http2.1/http.tcl +++ b/library/http2.1/http.tcl @@ -9,7 +9,7 @@ # See the file "license.terms" for information on usage and # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: http.tcl,v 1.8 1999/07/20 00:11:52 hershey Exp $ +# RCS: @(#) $Id: http.tcl,v 1.9 1999/08/05 16:57:48 hobbs Exp $ package provide http 2.1 ;# This uses Tcl namespaces @@ -27,7 +27,8 @@ namespace eval http { variable formMap set alphanumeric a-zA-Z0-9 - for {set i 1} {$i <= 256} {incr i} { + variable i 0 + for {} {$i <= 256} {incr i} { set c [format %c $i] if {![string match \[$alphanumeric\] $c]} { set formMap($c) %[format %.2x $i] diff --git a/library/http2.3/http.tcl b/library/http2.3/http.tcl index bf06cc3..f448077 100644 --- a/library/http2.3/http.tcl +++ b/library/http2.3/http.tcl @@ -9,7 +9,7 @@ # See the file "license.terms" for information on usage and # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: http.tcl,v 1.8 1999/07/20 00:11:52 hershey Exp $ +# RCS: @(#) $Id: http.tcl,v 1.9 1999/08/05 16:57:48 hobbs Exp $ package provide http 2.1 ;# This uses Tcl namespaces @@ -27,7 +27,8 @@ namespace eval http { variable formMap set alphanumeric a-zA-Z0-9 - for {set i 1} {$i <= 256} {incr i} { + variable i 0 + for {} {$i <= 256} {incr i} { set c [format %c $i] if {![string match \[$alphanumeric\] $c]} { set formMap($c) %[format %.2x $i] -- cgit v0.12