1 proc oid {oid name types} {
3 set new_name2oid($name) $oid
6 source [lindex $argv 0]
10 foreach name [array names name2oid] {
11 if {![info exists new_name2oid($name)] || $new_name2oid($name) != $name2oid($name)} {set differ 1}
14 foreach name [array names new_name2oid] {
15 if {![info exists name2oid($name)]} {set differ 1}
20 set n2of [open name2oid.tcl w]
21 puts $n2of "array set name2oid {"
22 foreach name [lsort [array names new_name2oid]] {
23 puts $n2of "$name $new_name2oid($name)"