};
struct vrt_dir_random {
+ const char *ident;
+ const char *name;
unsigned nmember;
const struct vrt_dir_random_entry *members;
- const char *ident;
};
struct vrt_random_backend {
Fc(tl, 0,
"\nstatic const struct vrt_dir_random vdr_%.*s = {\n",
PF(t_dir));
+ Fc(tl, 0, "\t.name = \"%.*s\",\n", PF(t_dir));
Fc(tl, 0, "\t.nmember = %d,\n", nelem);
Fc(tl, 0, "\t.members = vdre_%.*s,\n", PF(t_dir));
vcc_EmitBeIdent(tl->fc, t_first, tl->t);
vsb_cat(sb, "};\n");
vsb_cat(sb, "\n");
vsb_cat(sb, "struct vrt_dir_random {\n");
+ vsb_cat(sb, " const char *ident;\n");
+ vsb_cat(sb, " const char *name;\n");
vsb_cat(sb, " unsigned nmember;\n");
vsb_cat(sb, " const struct vrt_dir_random_entry *members;\n");
- vsb_cat(sb, " const char *ident;\n");
vsb_cat(sb, "};\n");
vsb_cat(sb, "\n");
vsb_cat(sb, "struct vrt_random_backend {\n");