Add blank initializers to all Prototypes.

This commit is contained in:
James Roseborough
2015-03-22 16:54:12 +00:00
parent d0e0fd4445
commit 450692d130

View File

@@ -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() {
p = NOSUBPROTOS;
upvalues = NOUPVALUES;
}
public Prototype() {}
public Prototype(int n_upvalues) { public Prototype(int n_upvalues) {
p = NOSUBPROTOS;
upvalues = new Upvaldesc[n_upvalues]; upvalues = new Upvaldesc[n_upvalues];
} }