type = val_type_from_width (width);
v->alignment = var_default_alignment (type);
v->measure = var_default_measure (type);
- v->role = ROLE_NONE;
+ v->role = ROLE_INPUT;
v->display_width = var_default_display_width (width);
v->print = v->write = var_default_formats (width);
attrset_init (&v->attributes);
{
switch (role)
{
- case ROLE_NONE:
- return _("None");
-
case ROLE_INPUT:
return _("Input");
case ROLE_BOTH:
return _("Both");
+ case ROLE_NONE:
+ return _("None");
+
case ROLE_PARTITION:
return _("Partition");
{
switch (role)
{
- case ROLE_NONE:
- return "NONE";
-
case ROLE_INPUT:
return "INPUT";
case ROLE_BOTH:
return "BOTH";
+ case ROLE_NONE:
+ return "NONE";
+
case ROLE_PARTITION:
return "PARTITION";