Changeset 82550
- Timestamp:
- 08/15/11 10:44:45 (4 years ago)
- File:
-
- 1 edited
-
trunk/dports/_resources/port1.0/group/app-1.0.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/_resources/port1.0/group/app-1.0.tcl
r82546 r82550 141 141 lappend identifier [string map {"." ""} ${app.name}] 142 142 return [regsub -all -nocase {[^a-z0-9.-]} [join ${identifier} .] ""] 143 } 144 145 # Implement our own lreverse proc, if it doesn't already exist. This will be 146 # the case on Tiger which has Tcl 8.4; lreverse is new in Tcl 8.5. 147 # Taken from http://wiki.tcl.tk/17188 148 if {[info command lreverse] == ""} { 149 proc lreverse l { 150 set r {} 151 set i [llength $l] 152 while {[incr i -1]} {lappend r [lindex $l $i]} 153 lappend r [lindex $l 0] 154 } 143 155 } 144 156 … … 268 280 } 269 281 } 270 271 272 # TODO: for Tiger we probably need our own lreverse implementation e.g. http://wiki.tcl.tk/17188
Note: See TracChangeset
for help on using the changeset viewer.

