Show
Ignore:
Timestamp:
03/07/2008 04:41:53 (5 months ago)
Author:
james
Message:

use proper array initialisation, now I know how!
reindent

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/complex.tcl

    r744 r942  
    11## bMotion plugins loader: complex 
    2 # 
    3 # $Id$ 
    42# 
    53 
    64############################################################################### 
    7 # This is a bMotion plugin 
    8 # Copyright (C) James Michael Seward 2000-2002 
     5# This is a bMotion module 
     6# Copyright (C) James Michael Seward 2000-2008 
    97# 
    108# This program is covered by the GPL, please refer the to LICENCE file in the 
     
    1513set currentlang $bMotionInfo(language) 
    1614set languages [split $bMotionSettings(languages) ","] 
     15 
    1716foreach bMotion_language $languages { 
    18   set bMotionInfo(language) $bMotion_language 
    19   bMotion_putloglev 2 * "bMotion: loading complex plugins language = $bMotion_language" 
    20   set files [glob -nocomplain "$bMotionPlugins/$bMotion_language/complex_*.tcl"] 
    21   foreach f $files { 
     17        set bMotionInfo(language) $bMotion_language 
     18        bMotion_putloglev 2 * "bMotion: loading complex plugins language = $bMotion_language" 
     19        set files [glob -nocomplain "$bMotionPlugins/$bMotion_language/complex_*.tcl"] 
     20 
     21        foreach f $files { 
    2222                set count [llength [array names bMotion_plugins_complex]] 
    2323                set bMotion_noplugins 0 
    24     bMotion_putloglev 1 * "bMotion: loading ($bMotion_language) complex plugin file $f" 
    25     catch { 
    26       source $f 
    27     } err 
     24                bMotion_putloglev 1 * "bMotion: loading ($bMotion_language) complex plugin file $f" 
     25                catch { 
     26                        source $f 
     27                } err 
    2828                set newcount [llength [array names bMotion_plugins_complex]] 
    2929                if {($bMotion_testing == 0) && ($newcount == $count) && ($bMotion_noplugins == 0)} { 
     
    3131                        putlog "Possible error: $err" 
    3232                } 
    33   } 
     33        } 
    3434} 
     35 
    3536set bMotionInfo(language) $currentlang 
    3637unset currentlang