• Leigh Stoller's avatar
    Fix contributed by Brian. The general idea is to allow global · 0f774f51
    Leigh Stoller authored
    variables to be renamed from within a subroutine:
    
    	proc create_testnet {} {
    		set s1 [$ns node]
     	}
    
    Chris' redefined set did not allow this. This is further complicated
    by the fact that its difficult to tell whats a global variable. You
    can declare a variable global, but until its set for the first time,
    the TCL info function will not tell you its a global. We do not want
    to rename locals of course, since that would make no sense to do.
    Anyway, Brian contributed the code to fix the new set function, and I
    looked at it and did my best to understand it (I kinda do), but no way
    I can be sure! I ran it through the test suite and spot checked the DB
    state. Seems to work okay.
    0f774f51
Name
Last commit
Last update
..
checkpass Loading commit data...
labels Loading commit data...
ns2ir Loading commit data...
GNUmakefile.in Loading commit data...
README Loading commit data...
assign_wrapper.in Loading commit data...
batch_daemon.in Loading commit data...
batchexp.in Loading commit data...
bwconfig.in Loading commit data...
console_reset.in Loading commit data...
console_setup.in Loading commit data...
console_setup.proxy.in Loading commit data...
db2ns.in Loading commit data...
endexp.in Loading commit data...
eventsys_control.in Loading commit data...
exitonwarn.pm Loading commit data...
exports_setup.in Loading commit data...
exports_setup.proxy.in Loading commit data...
frisbeelauncher.in Loading commit data...
libtbsetup.pm Loading commit data...
libtestbed.pm.in Loading commit data...
mkacct.in Loading commit data...
mkexpdir.in Loading commit data...
mkgroup.in Loading commit data...
mkproj.in Loading commit data...
named_setup.in Loading commit data...
node_control.in Loading commit data...
node_reboot.in Loading commit data...
node_update.in Loading commit data...
nscheck.in Loading commit data...
os_load.in Loading commit data...
os_setup.in Loading commit data...
portstats.in Loading commit data...
power.in Loading commit data...
power_rpc27.pm.in Loading commit data...
ptopgen.in Loading commit data...
reload_daemon.in Loading commit data...
resetvlans.in Loading commit data...
rmacct-ctrl.in Loading commit data...
rmgroup.in Loading commit data...
rmproj.in Loading commit data...
savelogs.in Loading commit data...
sched_reload.in Loading commit data...
sched_reserve.in Loading commit data...
setgroups.in Loading commit data...
snmpit.in Loading commit data...
snmpit_apc.pm Loading commit data...
snmpit_cisco.pm Loading commit data...
snmpit_cisco_stack.pm Loading commit data...
snmpit_doc.txt Loading commit data...
snmpit_intel.pm Loading commit data...
snmpit_intel_stack.pm Loading commit data...
snmpit_lib.pm Loading commit data...
spewlogfile.in Loading commit data...
startexp.in Loading commit data...
swapexp.in Loading commit data...
tbend.in Loading commit data...
tbprerun.in Loading commit data...
tbreport.in Loading commit data...
tbswapin.in Loading commit data...
tbswapout.in Loading commit data...
test.ns Loading commit data...
webbatchexp.in Loading commit data...
webendexp.in Loading commit data...
webmkacct.in Loading commit data...
webmkgroup.in Loading commit data...
webmkproj.in Loading commit data...
webnodecontrol.in Loading commit data...
webnodeupdate.in Loading commit data...
webnscheck.in Loading commit data...
webreport.in Loading commit data...
webrmgroup.in Loading commit data...
websetgroups.in Loading commit data...
webstartexp.in Loading commit data...
webswapexp.in Loading commit data...