Changeset 4473 for trunk/base
- Timestamp:
- Jan 6, 2004, 5:04:36 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port1.0/portutil.tcl
r4466 r4473 109 109 \if \{!\[info exists user_options(${option})\]\} \{ \n\ 110 110 foreach val \$args \{ \n\ 111 ldelete ${option} \$val\n\111 set ${option} \[ldelete \$\{$option\} \$val\] \n\ 112 112 \} \n\ 113 113 if \{\[string length \$\{${option}\}\] == 0\} \{ \n\ … … 179 179 global option_procs 180 180 upvar $optionName optionValue 181 if {![info exists option_procs($optionName)]} {182 return183 }184 181 switch $op { 185 182 w { … … 421 418 # Deletes a value from the supplied list 422 419 proc ldelete {list value} { 423 upvar $list uplist 424 set ix [lsearch -exact $uplist $value] 420 set ix [lsearch -exact $list $value] 425 421 if {$ix >= 0} { 426 set uplist [lreplace $uplist $ix $ix] 427 } 422 return [lreplace $list $ix $ix] 423 } 424 return $list 428 425 } 429 426
Note: See TracChangeset
for help on using the changeset viewer.