Fine-tune protection to enable compiler porting.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,10 +8,11 @@ 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 */
|
||||||
// Instruction *code;
|
// Instruction *code;
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user