Fix varargs handling

This commit is contained in:
James Roseborough
2007-08-02 03:00:46 +00:00
parent 80677e9a16
commit 5fb097d107
4 changed files with 10 additions and 13 deletions

View File

@@ -1,10 +1,9 @@
#!/bin/bash
LUA_HOME=/cygdrive/c/programs/lua5.1
TESTS="test1 test2 test3 test4 test5 swingapp"
TESTS="test2"
TESTS=`echo *.lua`
TESTS="test3.lua"
for x in $TESTS
do
echo compiling $x
${LUA_HOME}/luac5.1.exe -l -o ${x}.luac ${x}.lua
${LUA_HOME}/lua5.1.exe ${x}.luac
luac -l -o ${x}c ${x}
lua ${x}c
done

View File

@@ -39,7 +39,6 @@ print( func(11, 12, 13) )
print( func(23, 22, 21) )
print( func(func(32,33,34), func(45,46,47), func(58,59,50)) )
--[[
function p(a,...)
print("a",a)
print("...",...)
@@ -50,4 +49,3 @@ p()
p("q")
p("q","r")
p("q","r","s")
--]]

Binary file not shown.