diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-02-28 18:57:53 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-02-28 18:57:53 (EST) |
commit | fd24a7a089fbdfaa848c3adf58f40f5b2b529b36 (patch) | |
tree | f420e790fd9c2a64294e2ef68750c9a0626ae730 /eshtrans | |
parent | 0e6b908626e6d8adbd86c97adc8c9e2483ec4e8f (diff) | |
download | eggshell-fd24a7a089fbdfaa848c3adf58f40f5b2b529b36.zip eggshell-fd24a7a089fbdfaa848c3adf58f40f5b2b529b36.tar.gz eggshell-fd24a7a089fbdfaa848c3adf58f40f5b2b529b36.tar.bz2 |
eshtrans/eshrt: Drop old variables and function call
Diffstat (limited to 'eshtrans')
-rw-r--r-- | eshtrans/eshrt/eshrtbegin.esh | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/eshtrans/eshrt/eshrtbegin.esh b/eshtrans/eshrt/eshrtbegin.esh index ef627d7..3717dc9 100644 --- a/eshtrans/eshrt/eshrtbegin.esh +++ b/eshtrans/eshrt/eshrtbegin.esh @@ -27,7 +27,6 @@ __sp=0 __fn_name='' __fn_tu='' __fn_vars='' -__fn_var_vals='' __fn='' __prev_tu='' __prev_vars='' @@ -53,7 +52,6 @@ __frame_set() eval "__frame_${__sp}_name=\${__fn_name}" eval "__frame_${__sp}_tu=\${__fn_tu}" eval "__frame_${__sp}_vars=\${__fn_vars}" - eval "__frame_${__sp}_var_vals=\${__fn_var_vals}" } __frame_get() @@ -61,7 +59,6 @@ __frame_get() eval "__fn_name=\${__frame_${__sp}_name}" eval "__fn_tu=\${__frame_${__sp}_tu}" eval "__fn_vars=\${__frame_${__sp}_vars}" - eval "__fn_var_vals=\${__frame_${__sp}_var_vals}" } __fn_ctxsw() @@ -115,14 +112,13 @@ __fn_start() ${__fn} ${2} done + # Update local vars in stack. + __fn_update_vars + # Old state. __prev_tu="${__fn_tu}" __prev_vars="${__fn_vars}" - # Update local vars in stack. - __fn_update_vars - __frame_set - # Set stack pointer. __sp_inc @@ -130,7 +126,6 @@ __fn_start() __fn_name="${2}" __fn_tu="${1}" __fn_vars= - __fn_var_vals= __frame_set # Switch. |