summaryrefslogtreecommitdiffhomepage
path: root/ir/libcore
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-14 08:06:21 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-14 08:07:05 +0200
commit1e91ac1d7fd2336aef05aa80002f878dc3d2c805 (patch)
treea89d153d149427390ae633a10e32597525ea4596 /ir/libcore
parente85ac64d75fa9191be74609e009be252c3e979ce (diff)
Remove the unused option variants LC_OPT_ENT_ENUM_CONST_PTR and LC_OPT_ENT_ENUM_PTR.
Diffstat (limited to 'ir/libcore')
-rw-r--r--ir/libcore/lc_opts_enum.c12
-rw-r--r--ir/libcore/lc_opts_enum.h8
2 files changed, 2 insertions, 18 deletions
diff --git a/ir/libcore/lc_opts_enum.c b/ir/libcore/lc_opts_enum.c
index 638393c..73533a7 100644
--- a/ir/libcore/lc_opts_enum.c
+++ b/ir/libcore/lc_opts_enum.c
@@ -51,8 +51,6 @@ bool lc_opt_enum_ ## N ## _cb(void *const data, size_t const len, char const *co
DECL_CB(int, =)
DECL_CB(mask, |=)
-DECL_CB(ptr, =)
-DECL_CB(const_ptr, =)
DECL_CB(func_ptr, =)
#define DECL_DUMP(T, N, cond) \
@@ -127,16 +125,6 @@ DECL_DUMP(unsigned, mask, (item_value & value) == item_value)
DECL_DUMP_VALS(unsigned, mask)
#undef TYPE
-#define TYPE(x) void *x
-DECL_DUMP(void *, ptr, item_value == value)
-DECL_DUMP_VALS(void *, ptr)
-#undef TYPE
-
-#define TYPE(x) const void *x
-DECL_DUMP(const void *, const_ptr, item_value == value)
-DECL_DUMP_VALS(const void *, const_ptr)
-#undef TYPE
-
#define TYPE(x) int (*x)(void)
DECL_DUMP(int (*)(void), func_ptr, item_value == value)
DECL_DUMP_VALS(int (*)(void), func_ptr)
diff --git a/ir/libcore/lc_opts_enum.h b/ir/libcore/lc_opts_enum.h
index 5a94bd5..8ecdf7c 100644
--- a/ir/libcore/lc_opts_enum.h
+++ b/ir/libcore/lc_opts_enum.h
@@ -28,13 +28,9 @@ lc_opt_dump_vals_t lc_opt_enum_ ## N ## _dump_vals; \
_LC_OPT_DECL_ENUM(int, int)
_LC_OPT_DECL_ENUM(unsigned, mask)
-_LC_OPT_DECL_ENUM(void *, ptr)
-_LC_OPT_DECL_ENUM(const void *, const_ptr)
-#define LC_OPT_ENT_ENUM_INT(name, desc, var) _LC_OPT_ENT_ENUM(int, name, desc, var)
-#define LC_OPT_ENT_ENUM_MASK(name, desc, var) _LC_OPT_ENT_ENUM(mask, name, desc, var)
-#define LC_OPT_ENT_ENUM_PTR(name, desc, var) _LC_OPT_ENT_ENUM(ptr, name, desc, var)
-#define LC_OPT_ENT_ENUM_CONST_PTR(name, desc, var) _LC_OPT_ENT_ENUM(const_ptr, name, desc, var)
+#define LC_OPT_ENT_ENUM_INT(name, desc, var) _LC_OPT_ENT_ENUM(int, name, desc, var)
+#define LC_OPT_ENT_ENUM_MASK(name, desc, var) _LC_OPT_ENT_ENUM(mask, name, desc, var)
typedef struct {
const char *name;