1941-docker-image-to-testdevel
| Rev | Line | |
|---|
| [0422d20] | 1 | package require Toltcl |
|---|
| 2 | |
|---|
| 3 | if { ![ llength [ info commands Tol_HciWriter ] ] } { |
|---|
| 4 | tol::initkernel |
|---|
| 5 | |
|---|
| 6 | proc Tol_HciWriter { msg } { |
|---|
| 7 | puts [ string trim $msg ] |
|---|
| 8 | } |
|---|
| 9 | |
|---|
| 10 | tol::initlibrary 1 |
|---|
| 11 | } |
|---|
| 12 | |
|---|
| 13 | namespace eval ::TolConfig { |
|---|
| 14 | variable cwd [ file normalize [ file dir [ info script ] ] ] |
|---|
| 15 | } |
|---|
| 16 | |
|---|
| 17 | proc ::TolConfig::GetConfig { } { |
|---|
| 18 | return [ lindex [ toltcl::eval { |
|---|
| 19 | NameBlockToSet( TolConfigManager::Config ) |
|---|
| 20 | } -named 1 ] 1 ] |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | proc ::TolConfig::GetType { member } { |
|---|
| 24 | set result [ toltcl::eval [ string map [ list %m $member ] { |
|---|
| 25 | Text Grammar( %m ) |
|---|
| 26 | } ] ] |
|---|
| 27 | if { $result eq "NameBlock" } { |
|---|
| 28 | return "section" |
|---|
| 29 | } else { |
|---|
| 30 | return "member" |
|---|
| 31 | } |
|---|
| 32 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.