EVMInitInfopublic class EVMInitInfo extends Object
Fields Summary |
---|
String | fromAddress | String | toAddress | String | byteCount | EVMInitInfo | next | static EVMInitInfo | initList |
Methods Summary |
---|
public static void | addInfo(java.lang.String f, java.lang.String t, java.lang.String c)
initList = new EVMInitInfo( f, t, c, initList );
| public static void | write(CCodeWriter out, java.lang.String typename, java.lang.String dataname, java.lang.String nname)
int n = 0;
out.println("const struct "+typename+" "+dataname+"[] = {");
for ( EVMInitInfo p = initList; p != null; p = p.next ){
out.println(" { "+p.fromAddress+", "+p.toAddress+", "+p.byteCount+" },");
n++;
}
out.println("};");
out.println("const int "+nname+" = "+n+";");
|
|