Ticket #40655: handle_option-prepend.diff
File handle_option-prepend.diff, 1.1 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago) |
---|
-
src/port1.0/portutil.tcl
114 114 } 115 115 116 116 ## 117 # Handle option-prepend 118 # 119 # @param option name of the option 120 # @param args arguments 121 proc handle_option-prepend {option args} { 122 global $option user_options option_procs 123 124 if {![info exists user_options($option)]} { 125 if {[info exists $option]} { 126 set $option [concat $args [set $option]] 127 } else { 128 set $option $args 129 } 130 } 131 } 132 133 ## 117 134 # Handle option-delete 118 135 # 119 136 # @param option name of the option … … 188 205 foreach option $args { 189 206 interp alias {} $option {} handle_option $option 190 207 interp alias {} $option-append {} handle_option-append $option 208 interp alias {} $option-prepend {} handle_option-prepend $option 191 209 interp alias {} $option-delete {} handle_option-delete $option 192 210 interp alias {} $option-strsed {} handle_option-strsed $option 193 211 interp alias {} $option-replace {} handle_option-replace $option