fw.write("typedef struct __" + current.getIdent() + " {\n"); for (int j = 0; j < current.getFields().length; j++) { fw.write("\t" + current.getFields()[j].getType() + " " + current.getFields()[j].getVariable().getIdent() + ";\n"); } fw.write("} " + current.getIdent() + ";\n");
fw.write(CommonUtils.structToTypedef(current,true)); fw.write("\n");
    private static void createStructureDefs(SIRStructure[] structs,                                             FileWriter fw) throws Exception    {        for (int i = 0; i < structs.length; i++) {            SIRStructure current = structs[i];            fw.write("typedef struct __" + current.getIdent() + " {\n");            for (int j = 0; j < current.getFields().length; j++) {                fw.write("\t" + current.getFields()[j].getType() + " " +                         current.getFields()[j].getVariable().getIdent() +                         ";\n");            }            fw.write("} " + current.getIdent() + ";\n");         }    }