Having a pointer between two shorts results in a lot of empty space
in the struct. Remove this wastage.
Signed-off-by: NeilBrown <neil@brown.name>
short result_size;
};
struct state {
short result_size;
};
struct state {
short go_to_cnt;
const struct lookup * go_to;
short go_to_cnt;
const struct lookup * go_to;
- fprintf(f, "\t[%d] = { %d, goto_%d, %d },\n",
- i, is->go_to.cnt, i, prod);
+ fprintf(f, "\t[%d] = { %d, %d, goto_%d },\n",
+ i, prod, is->go_to.cnt, i);
- fprintf(f, "\t[%d] = { 0, NULL, %d },\n", i, prod);
+ fprintf(f, "\t[%d] = { %d, 0, NULL },\n", i, prod);
}
fprintf(f, "};\n\n");
}
}
fprintf(f, "};\n\n");
}