summaryrefslogtreecommitdiffhomepage
path: root/ir/libcore
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-13 20:11:23 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-14 07:33:37 +0200
commit9c15b1269070281a42e476dacee627627cc55211 (patch)
tree1056c84937b35652931e67c42affa6569a9b7fff /ir/libcore
parent443df830aaa9fc5c8ebb1a35a7c3645845ae8fca (diff)
Remove the unused parameter 'name' from option value dumpers.
Diffstat (limited to 'ir/libcore')
-rw-r--r--ir/libcore/lc_opts.c5
-rw-r--r--ir/libcore/lc_opts.h2
-rw-r--r--ir/libcore/lc_opts_enum.c3
3 files changed, 4 insertions, 6 deletions
diff --git a/ir/libcore/lc_opts.c b/ir/libcore/lc_opts.c
index 6608e25..60f3ebc 100644
--- a/ir/libcore/lc_opts.c
+++ b/ir/libcore/lc_opts.c
@@ -332,9 +332,8 @@ int lc_opt_std_dump(char *buf, size_t n, lc_opt_type_t type, void *data)
return res;
}
-int lc_opt_bool_dump_vals(char *buf, size_t n, const char *name, lc_opt_type_t type, void *data)
+int lc_opt_bool_dump_vals(char *buf, size_t n, lc_opt_type_t type, void *data)
{
- (void)name;
(void)type;
(void)data;
strncpy(buf, "true, false", n);
@@ -440,7 +439,7 @@ static char *lc_opt_values_to_string(char *buf, size_t len,
{
const lc_opt_special_t *s = lc_get_opt_special(ent);
if (s->dump_vals)
- s->dump_vals(buf, len, ent->name, s->type, s->value);
+ s->dump_vals(buf, len, s->type, s->value);
return buf;
}
diff --git a/ir/libcore/lc_opts.h b/ir/libcore/lc_opts.h
index c771415..d75333c 100644
--- a/ir/libcore/lc_opts.h
+++ b/ir/libcore/lc_opts.h
@@ -36,7 +36,7 @@ typedef bool (lc_opt_callback_t)(const char *name, lc_opt_type_t type, void *dat
typedef int (lc_opt_dump_t)(char *buf, size_t n, lc_opt_type_t type, void *data);
-typedef int (lc_opt_dump_vals_t)(char *buf, size_t n, const char *name, lc_opt_type_t type, void *data);
+typedef int (lc_opt_dump_vals_t)(char *buf, size_t n, lc_opt_type_t type, void *data);
typedef struct {
const char *name; /**< The name of the option. */
diff --git a/ir/libcore/lc_opts_enum.c b/ir/libcore/lc_opts_enum.c
index 85d31f0..1de9471 100644
--- a/ir/libcore/lc_opts_enum.c
+++ b/ir/libcore/lc_opts_enum.c
@@ -97,14 +97,13 @@ int lc_opt_enum_ ## N ## _dump(char *buf, size_t n, lc_opt_type_t type, void *da
#define DECL_DUMP_VALS(T, N) \
-int lc_opt_enum_ ## N ## _dump_vals(char *buf, size_t n, const char *name, lc_opt_type_t type, void *data) \
+int lc_opt_enum_ ## N ## _dump_vals(char *buf, size_t n, lc_opt_type_t type, void *data) \
{ \
lc_opt_enum_ ## N ## _var_t *var = (lc_opt_enum_ ## N ## _var_t*) data; \
const lc_opt_enum_ ## N ## _items_t *items = var->items; \
const char *prefix = ""; \
int i; \
size_t l = strlen(buf); \
- (void) name; \
(void) type; \
\
if (l >= n) \