summaryrefslogtreecommitdiffhomepage
path: root/ir/libcore
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-13 19:50:27 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-13 20:31:41 +0200
commit17ca96263bbd9568b64649e6171dd135ed47bd67 (patch)
tree233e3b9b481d354e29d0173e73d116cbd6f53fa9 /ir/libcore
parent84118698c44e7de66f1f8f17ef5e9fb0398be558 (diff)
Make lc_opt_value_to_string() static.
Diffstat (limited to 'ir/libcore')
-rw-r--r--ir/libcore/lc_opts.c9
-rw-r--r--ir/libcore/lc_opts.h9
2 files changed, 8 insertions, 10 deletions
diff --git a/ir/libcore/lc_opts.c b/ir/libcore/lc_opts.c
index 6705a33..cd6b540 100644
--- a/ir/libcore/lc_opts.c
+++ b/ir/libcore/lc_opts.c
@@ -416,7 +416,14 @@ bool lc_opt_occurs(lc_opt_entry_t *opt, const char *value)
return fine;
}
-char *lc_opt_value_to_string(char *buf, size_t len, const lc_opt_entry_t *ent)
+/**
+ * Convert the option to a string representation.
+ * @param buf The string buffer to put the string representation to.
+ * @param len The length of @p buf.
+ * @param ent The option to process.
+ * @return @p buf.
+ */
+static char *lc_opt_value_to_string(char *buf, size_t len, const lc_opt_entry_t *ent)
{
const lc_opt_special_t *s = lc_get_opt_special(ent);
if (s->dump)
diff --git a/ir/libcore/lc_opts.h b/ir/libcore/lc_opts.h
index 97d8a67..fa660f0 100644
--- a/ir/libcore/lc_opts.h
+++ b/ir/libcore/lc_opts.h
@@ -174,15 +174,6 @@ lc_opt_entry_t *lc_opt_resolve_opt(const lc_opt_entry_t *root,
bool lc_opt_occurs(lc_opt_entry_t *opt, const char *value);
/**
- * Convert the option to a string representation.
- * @param buf The string buffer to put the string representation to.
- * @param len The length of @p buf.
- * @param ent The option to process.
- * @return @p buf.
- */
-char *lc_opt_value_to_string(char *buf, size_t len, const lc_opt_entry_t *ent);
-
-/**
* Get the name of the type of an option.
* @param ent The option.
* @return The name of the type of the option.