summaryrefslogtreecommitdiffstats
path: root/eshtrans
diff options
context:
space:
mode:
Diffstat (limited to 'eshtrans')
-rw-r--r--eshtrans/eshrt/eshrtbegin.esh11
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.