1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

More parser fixes. Store attributes properly for each field and

don't emit a second declaration unless it's different to the default.
This commit is contained in:
Paul Richards 1995-01-25 07:56:10 +00:00
parent a829865d8e
commit 4a112dd3f8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5880

View File

@ -610,7 +610,7 @@ parse_form(struct form_list *form, FILE *outf)
} else {
fields->field.type = def->field.type;
fields->field.width = def->field.width;
fields->field.attr = def->field.attr;
fields->attr = def->attr;
}
if (!links) {
@ -621,15 +621,16 @@ parse_form(struct form_list *form, FILE *outf)
fields->field.right = -1;
fields->field.next = -1;
fields->defname = fieldname;
} else {
}
if (strcmp(def->fieldname, fields->fieldname))
output_field(def, fields->fieldname, outf);
if ((fields->field.type == F_TEXT)
|| (fields->field.type == F_ACTION))
fields->defname = def->fieldname;
else
fields->defname = fields->fieldname;
}
if ((fields->field.type == F_TEXT)
|| (fields->field.type == F_ACTION))
fields->defname = def->fieldname;
else
fields->defname = fields->fieldname;
}
/* Output the field table for this form */