From 406ff16663922143dd4c5dfd2e61bbcaf8029edc Mon Sep 17 00:00:00 2001 From: "p.kosyh" Date: Sun, 17 Jul 2011 11:16:37 +0000 Subject: [PATCH] cleanups --- stead/stead.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/stead/stead.lua b/stead/stead.lua index 520eaef..6eeccd4 100644 --- a/stead/stead.lua +++ b/stead/stead.lua @@ -98,7 +98,7 @@ stead.cctx = function() return stead.call_ctx[stead.call_top]; end -function callpush(v, ...) +stead.callpush = function(v, ...) stead.call_top = stead.call_top + 1; stead.call_ctx[stead.call_top] = { txt = nil, self = v, action = false }; args = {...}; @@ -115,9 +115,7 @@ function callpush(v, ...) self = v end -stead.callpush = callpush - -function clearargs() +stead.clearargs = function() arg1 = nil arg2 = nil arg3 = nil @@ -130,9 +128,7 @@ function clearargs() self = nil end -stead.clearargs = clearargs - -function callpop() +stead.callpop = function() stead.call_ctx[stead.call_top] = nil; stead.call_top = stead.call_top - 1; if stead.call_top < 0 then @@ -140,7 +136,6 @@ function callpop() end stead.clearargs() end -stead.callpop = callpop function pclr() stead.cctx().txt = nil @@ -151,6 +146,7 @@ function pget() return stead.cctx().txt; end stead.pget = pget + function p(...) local i local a = {...}