From 987ef9e45485fac3de052ee81ef0678296bbd86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 28 Jun 2017 19:59:45 +0200 Subject: fset: replace hashtable by a simple structure for max length of fields --- src/plugins/fset/fset-option.h | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'src/plugins/fset/fset-option.h') diff --git a/src/plugins/fset/fset-option.h b/src/plugins/fset/fset-option.h index 438d89340..6ac4f3c40 100644 --- a/src/plugins/fset/fset-option.h +++ b/src/plugins/fset/fset-option.h @@ -53,9 +53,34 @@ struct t_fset_option struct t_fset_option *next_option; /* link to next option */ }; +struct t_fset_option_max_length +{ + int file; + int section; + int option; + int name; + int parent_name; + int type; + int type_en; + int type_short; + int type_tiny; + int default_value; + int value; + int parent_value; + int value2; + int min; + int max; + int description; + int description2; + int description_en; + int description_en2; + int string_values; + int marked; +}; + extern struct t_arraylist *fset_options; extern int fset_option_count_marked; -extern struct t_hashtable *fset_option_max_length_field; +extern struct t_fset_option_max_length *fset_option_max_length; extern char *fset_option_filter; extern char *fset_option_type_string[]; extern char *fset_option_type_string_short[]; @@ -68,7 +93,7 @@ extern int fset_option_value_is_changed (struct t_fset_option *option); extern void fset_option_set_max_length_fields_all (); extern void fset_option_free (struct t_fset_option *fset_option); extern struct t_arraylist *fset_option_get_arraylist_options (); -extern struct t_hashtable *fset_option_get_hashtable_max_length_field (); +extern struct t_fset_option_max_length *fset_option_get_max_length (); extern void fset_option_get_options (); extern void fset_option_set_filter (const char *filter); extern void fset_option_filter_options (const char *filter); -- cgit v1.2.3