Changeset 5588
- Timestamp:
- Jul 28, 2009, 4:53:48 PM (15 years ago)
- Location:
- data/media/tcl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/media/tcl/init.tcl
r5586 r5588 1 # Check if Tcl was properly initialized 2 info library 3 4 # Create orxonox namespace 1 5 namespace eval orxonox {} 2 6 … … 163 167 execute puts $newline $s 164 168 } else { 165 ::tcl::puts $args169 eval [concat ::tcl::puts $args] 166 170 } 167 171 } … … 180 184 # get the returned errormessage if an undefined_proc command is called 181 185 if {[llength [info commands ::tcl::unknown]] == 0} { 182 set errorcode [catch {unknown undefined_proc} result options]186 set errorcode [catch {unknown undefined_proc} result] 183 187 } else { 184 set errorcode [catch {::tcl::unknown undefined_proc} result options]188 set errorcode [catch {::tcl::unknown undefined_proc} result] 185 189 } 186 190 … … 211 215 212 216 set cmd [concat ::tcl::unknown $args] 213 set errorcode [catch {eval $cmd} result options] 217 if {[info tclversion] < 8.5} { 218 set errorcode [catch {eval $cmd} result] 219 } else { 220 set errorcode [catch {eval $cmd} result options] 221 } 214 222 set resultlist [split $result] 215 223 set success 1 … … 227 235 228 236 if {!$success} { 229 return -code $errorcode -options $options $result 237 if {[info tclversion] < 8.5} { 238 return -code $errorcode $result 239 } else { 240 return -code $errorcode -options $options $result 241 } 230 242 } else { 231 243 return [query $args] … … 240 252 unset errorcode 241 253 unset result 242 unset options243 254 244 255 # if the "undefined_proc" command was renamed previously, undo this -
data/media/tcl/remote.tcl
r5584 r5588 1 1 set telnetserverthreadid [TclThreadManager create] 2 TclThreadManager execute $telnetserverthreadid source telnet_server.tcl2 TclThreadManager execute $telnetserverthreadid source $pld/telnet_server.tcl
Note: See TracChangeset
for help on using the changeset viewer.