⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showforstmtpropandrelationship.tcl

📁 多发法定阿凡阿道夫埃罚罚 埃担罚大多发叮罚罚多发
💻 TCL
字号:
proc ShowForStmtProp {id} {    global fp    puts $fp "  <---- properties ----"    puts $fp "  npiType=[npi_get $id -npiType]"    puts $fp "  npiFile=[npi_get $id -npiFile]"    puts $fp "  npiLineNo=[npi_get $id -npiLineNo]"    puts $fp "  >---- properties ----"}proc ShowHandleProp {Handle type} {    global fp    puts $fp "    <---$type --->"    if {$Handle != "NULL"} {        puts $fp "    npiType = [npi_get $Handle -npiType]"        puts $fp "    npiFile = [npi_get $Handle -npiFile]"        puts $fp "    npiLineNo = [npi_get $Handle -npiLineNo]"    }    puts $fp "    <---end of $type --->"}proc ShowForStmtRelationship {id} {    global fp    puts $fp "  <---relationship --->"    set Init [npi_handle $id -npiType npiForInitStmt]    ShowHandleProp $Init "npi_handle \$id -npiType npiForInitStmt"    set Condition [npi_handle $id -npiType npiCondition]    ShowHandleProp $Condition "npi_handle \$id -npiType npiCondition"    set Inc [npi_handle $id -npiType npiForIncStmt]    ShowHandleProp $Inc "npi_handle \$id -npiType npiForIncStmt"    set stmt [npi_handle $id -npiType npiStmt]    ShowHandleProp $stmt "npi_handle \$id -npiType npiStmt"    puts $fp "  <---end of relationship --->"}proc ShowForStmtPropAndRelationship {} {    global g_For    global fp    set var $g_For    puts $fp "<---begin showing ForStmt information--->"    ShowForStmtProp $var    ShowForStmtRelationship $var    puts $fp "<---end of showing ForStmt information--->"}    set log_file [file join [file dirname [info script]] [file tail [info script]].out]set fp [open $log_file w]fconfigure $fp -buffering nonenpi_register_cb -npiModuleBased For ShowForStmtPropAndRelationshipnpi_traverse_model -npiModuleBasedclose $fp

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -