summaryrefslogtreecommitdiff
path: root/test/examples
diff options
context:
space:
mode:
Diffstat (limited to 'test/examples')
-rw-r--r--test/examples/ps/hilbert.lua2
-rw-r--r--test/examples/www/staff.lua8
2 files changed, 2 insertions, 8 deletions
diff --git a/test/examples/ps/hilbert.lua b/test/examples/ps/hilbert.lua
index b1042b57..dbcec963 100644
--- a/test/examples/ps/hilbert.lua
+++ b/test/examples/ps/hilbert.lua
@@ -3,8 +3,6 @@
-- Luiz Henrique de Figueiredo (lhf@csg.uwaterloo.ca)
-- 10 Nov 95
-$debug
-
dofile("ps.lua")
function p()
diff --git a/test/examples/www/staff.lua b/test/examples/www/staff.lua
index 7fa5b810..f36df4ad 100644
--- a/test/examples/www/staff.lua
+++ b/test/examples/www/staff.lua
@@ -1,7 +1,5 @@
-$debug
-
readfrom("template.html")
-TEMPLATE=read(".*")
+TEMPLATE=read("*a")
readfrom()
PAT="|(%a%a*)|"
@@ -17,10 +15,8 @@ function get(i)
end
function global(t)
- local i,v=next(t,nil)
- while i do
+ for i,v in t do
GLOBAL[i]=v
- i,v=next(t,i)
end
end