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;
public class LocVars {
final LString m_varname;
final int m_startpc;
final int m_endpc;
public LString varname;
public int startpc;
public int endpc;
public LocVars(LString varname, int startpc, int endpc) {
this.m_varname = varname;
this.m_startpc = startpc;
this.m_endpc = endpc;
this.varname = varname;
this.startpc = startpc;
this.endpc = endpc;
}
}

View File

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

View File

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