From 86f18c20794d12ce372b2aa83f7a48838670d65b Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 28 Jan 2022 15:37:59 +0100 Subject: [PATCH] [form] enum form_mode -> form_mode_T --- src/document/forms.h | 4 +++- src/document/html/parser.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/document/forms.h b/src/document/forms.h index f3f565b44..1c7475e47 100644 --- a/src/document/forms.h +++ b/src/document/forms.h @@ -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; diff --git a/src/document/html/parser.h b/src/document/html/parser.h index e4da42e96..2905c9e14 100644 --- a/src/document/html/parser.h +++ b/src/document/html/parser.h @@ -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;