Add blank initializers to all Prototypes.
This commit is contained in:
@@ -99,11 +99,16 @@ public class Prototype {
|
|||||||
public int numparams;
|
public int numparams;
|
||||||
public int is_vararg;
|
public int is_vararg;
|
||||||
public int maxstacksize;
|
public int maxstacksize;
|
||||||
|
private static final Upvaldesc[] NOUPVALUES = {};
|
||||||
|
private static final Prototype[] NOSUBPROTOS = {};
|
||||||
|
|
||||||
|
public Prototype() {
|
||||||
public Prototype() {}
|
p = NOSUBPROTOS;
|
||||||
|
upvalues = NOUPVALUES;
|
||||||
|
}
|
||||||
|
|
||||||
public Prototype(int n_upvalues) {
|
public Prototype(int n_upvalues) {
|
||||||
|
p = NOSUBPROTOS;
|
||||||
upvalues = new Upvaldesc[n_upvalues];
|
upvalues = new Upvaldesc[n_upvalues];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user