Fine-tune protection to enable compiler porting.

This commit is contained in:
James Roseborough
2007-07-13 14:49:58 +00:00
parent 2a28925f74
commit ba3da1ca2c
3 changed files with 10 additions and 9 deletions

View File

@@ -3,14 +3,14 @@ package lua.io;
import lua.value.LString; import lua.value.LString;
public class LocVars { public class LocVars {
final LString m_varname; public LString varname;
final int m_startpc; public int startpc;
final int m_endpc; public int endpc;
public LocVars(LString varname, int startpc, int endpc) { public LocVars(LString varname, int startpc, int endpc) {
this.m_varname = varname; this.varname = varname;
this.m_startpc = startpc; this.startpc = startpc;
this.m_endpc = endpc; this.endpc = endpc;
} }
} }

View File

@@ -8,9 +8,10 @@ import lua.value.LString;
** Function Prototypes ** Function Prototypes
*/ */
public class Proto extends LValue { public class Proto extends LValue {
// TODO: what to do with state?
public Proto(StackState l) { public Proto(StackState l) {
} }
public Proto() {
}
public LValue[] k; /* constants used by the function */ public LValue[] k; /* constants used by the function */
// TValue *k; /* constants used by the function */ // TValue *k; /* constants used by the function */

View File

@@ -30,7 +30,7 @@ public class LoadStateTest extends TestCase {
Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY,
Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY,
Double.MAX_VALUE, Double.MAX_VALUE,
Double.MIN_NORMAL Double.MAX_VALUE
}; };
public void testLongBitsToLuaNumber() { public void testLongBitsToLuaNumber() {