Skip to content

Commit 4673ba9

Browse files
committed
Re-organising the find of the dynamic libraries.
1 parent 89eec60 commit 4673ba9

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

library/tilegtk.tcl

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -50,33 +50,33 @@ namespace eval ttk::theme::tilegtk {
5050
}
5151
}
5252
}
53-
set loaded 0
54-
foreach lib $libs {
55-
puts "* Locating: $lib"
56-
set found 0
57-
foreach path $paths {
58-
if {![file isdirectory $path]} {continue}
59-
foreach name $names {
60-
foreach prefix $prefixes {
61-
foreach file [glob -nocomplain -dir $path -type f \
62-
${prefix}${lib}${name}$ext] {
63-
if {[file exists $file]} {
64-
puts " ++ $file"
65-
if {[catch {initialiseLibrary $lib $file} symbol]} {
66-
puts " => ERROR: $symbol"
67-
} else {
68-
incr loaded; set found 1
69-
break
70-
}
71-
};# if {[file exists $file]}
72-
};# foreach file ...
73-
if {$found} {break}
74-
};# foreach prefix $prefixes
75-
if {$found} {break}
76-
};# foreach name $names
53+
set loaded 0
54+
foreach lib $libs {
55+
puts "* Locating: $lib"
56+
set found 0
57+
foreach name $names {
58+
foreach prefix $prefixes {
59+
foreach path $paths {
60+
if {$found} {break}
61+
if {![file isdirectory $path]} {continue}
62+
foreach file [glob -nocomplain -dir $path -type f \
63+
${prefix}${lib}${name}$ext] {
64+
if {$found} {break}
65+
if {[file exists $file]} {
66+
puts " ++ $file"
67+
if {[catch {initialiseLibrary $lib $file} symbol]} {
68+
puts " => ERROR: $symbol"
69+
} else {
70+
incr loaded; set found 1
71+
break
72+
}
73+
};# if {[file exists $file]}
74+
};# foreach file ...
75+
};# foreach prefix $prefixes
76+
};# foreach name $names
77+
}
7778
}
78-
}
79-
if {$loaded != [llength $libs]} {
79+
if {$loaded != [llength $libs]} {
8080
error "Not all symbols loaded!"
8181
}
8282
};# loadLibraries

0 commit comments

Comments
 (0)