1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[form] enum form_mode -> form_mode_T

This commit is contained in:
Witold Filipczyk 2022-01-28 15:37:59 +01:00
parent 0f3be4d4fe
commit 86f18c2079
2 changed files with 4 additions and 2 deletions

View File

@ -80,6 +80,8 @@ enum form_mode {
FORM_MODE_DISABLED,
};
typedef unsigned char form_mode_T;
#define form_field_is_readonly(field) ((field)->mode != FORM_MODE_NORMAL)
enum form_wrap {
@ -99,7 +101,7 @@ struct el_form_control {
int position;
enum form_type type;
enum form_mode mode;
form_mode_T mode;
char *id; /**< used by scripts */
char *name;

View File

@ -63,7 +63,7 @@ struct text_attrib {
#endif
char *select;
enum form_mode select_disabled;
form_mode_T select_disabled;
unsigned int tabindex;
unicode_val_T accesskey;