Imported Upstream version 3.5.1
[platform/upstream/ccache.git] / src / confitems.gperf
index f3954b5..8d6a767 100644 (file)
@@ -4,7 +4,20 @@
 %readonly-tables
 %define hash-function-name confitems_hash
 %define lookup-function-name confitems_get
-%define initializer-suffix ,0,NULL,0,NULL,NULL
+%define initializer-suffix ,0,0,NULL,NULL,NULL
+%{
+#include "confitems.h"
+#include "conf.h"
+
+#undef bool
+#define ITEM_ENTRY(name, type, verify_fn) \
+       offsetof(struct conf, name), confitem_parse_ ## type, \
+       confitem_format_ ## type, verify_fn
+#define ITEM(name, type) \
+       ITEM_ENTRY(name, type, NULL)
+#define ITEM_V(name, type, verification) \
+       ITEM_ENTRY(name, type, confitem_verify_ ## verification)
+%}
 struct conf_item;
 %%
 base_dir,             0, ITEM_V(base_dir, env_string, absolute_path)
@@ -23,7 +36,7 @@ hard_link,           12, ITEM(hard_link, bool)
 hash_dir,            13, ITEM(hash_dir, bool)
 ignore_headers_in_manifest, 14, ITEM(ignore_headers_in_manifest, env_string)
 keep_comments_cpp,   15, ITEM(keep_comments_cpp, bool)
-limit_multiple,      16, ITEM(limit_multiple, float)
+limit_multiple,      16, ITEM(limit_multiple, double)
 log_file,            17, ITEM(log_file, env_string)
 max_files,           18, ITEM(max_files, unsigned)
 max_size,            19, ITEM(max_size, size)