Improve compatibility with vm1 and C-based lua.

This commit is contained in:
James Roseborough
2010-04-25 22:40:04 +00:00
parent 79b0294207
commit 29d6f2ce58
9 changed files with 24 additions and 20 deletions

View File

@@ -126,7 +126,7 @@ public class lua {
break;
} else if ( "-".equals( args[i] ) ) {
setGlobalArg( _G, args, i );
processScript( System.in, "stdin" );
processScript( System.in, "=stdin" );
break;
} else {
switch ( args[i].charAt(1) ) {
@@ -202,7 +202,7 @@ public class lua {
String line = reader.readLine();
if ( line == null )
return;
processScript( new ByteArrayInputStream(line.getBytes()), "stdin" );
processScript( new ByteArrayInputStream(line.getBytes()), "=stdin" );
}
}
}