summaryrefslogtreecommitdiffhomepage
path: root/ir/libcore
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-13 19:51:12 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-13 20:31:41 +0200
commit8d7337e4791179c2566cfc185ded9e8b05ead796 (patch)
treed6db20f4b438da3ae3b17feac629e988c9948f32 /ir/libcore
parent17ca96263bbd9568b64649e6171dd135ed47bd67 (diff)
Make lc_opt_occurs() static.
Diffstat (limited to 'ir/libcore')
-rw-r--r--ir/libcore/lc_opts.c8
-rw-r--r--ir/libcore/lc_opts.h8
2 files changed, 7 insertions, 9 deletions
diff --git a/ir/libcore/lc_opts.c b/ir/libcore/lc_opts.c
index cd6b540..ea94d1f 100644
--- a/ir/libcore/lc_opts.c
+++ b/ir/libcore/lc_opts.c
@@ -345,7 +345,13 @@ int lc_opt_bool_dump_vals(char *buf, size_t n, const char *name, lc_opt_type_t t
return n;
}
-bool lc_opt_occurs(lc_opt_entry_t *opt, const char *value)
+/**
+ * Set the value of an option.
+ * @param opt The option to set.
+ * @param value The value of the option in a string representation.
+ * @return 0, if an error occurred, 1 else.
+ */
+static bool lc_opt_occurs(lc_opt_entry_t *opt, const char *value)
{
static const struct {
const char *str;
diff --git a/ir/libcore/lc_opts.h b/ir/libcore/lc_opts.h
index fa660f0..0919ab7 100644
--- a/ir/libcore/lc_opts.h
+++ b/ir/libcore/lc_opts.h
@@ -166,14 +166,6 @@ lc_opt_entry_t *lc_opt_resolve_opt(const lc_opt_entry_t *root,
const char * const *names, int n);
/**
- * Set the value of an option.
- * @param opt The option to set.
- * @param value The value of the option in a string representation.
- * @return 0, if an error occurred, 1 else.
- */
-bool lc_opt_occurs(lc_opt_entry_t *opt, const char *value);
-
-/**
* Get the name of the type of an option.
* @param ent The option.
* @return The name of the type of the option.