summaryrefslogtreecommitdiffhomepage
path: root/ir/libcore
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-13 19:29:49 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-13 20:31:40 +0200
commitd44c59762fc9a37f2ac9cad76a78d972d780d36d (patch)
treeb7604b11e8b72d53c16d02417ef40be654a37ad0 /ir/libcore
parentedb78737498e651c500acf01ec71f809e3e1750b (diff)
Make lc_opt_grp_is_root() static.
Diffstat (limited to 'ir/libcore')
-rw-r--r--ir/libcore/lc_opts.c7
-rw-r--r--ir/libcore/lc_opts.h7
2 files changed, 6 insertions, 8 deletions
diff --git a/ir/libcore/lc_opts.c b/ir/libcore/lc_opts.c
index efd45e6..64a993c 100644
--- a/ir/libcore/lc_opts.c
+++ b/ir/libcore/lc_opts.c
@@ -98,7 +98,12 @@ lc_opt_entry_t *lc_opt_root_grp(void)
return &root_group;
}
-int lc_opt_grp_is_root(const lc_opt_entry_t *ent)
+/**
+ * Check, if a group is the root group
+ * @param ent The entry to check for.
+ * @return 1, if the entry is the root group, 0 otherwise.
+ */
+static int lc_opt_grp_is_root(const lc_opt_entry_t *ent)
{
return ent->parent == NULL;
}
diff --git a/ir/libcore/lc_opts.h b/ir/libcore/lc_opts.h
index 9a3ea1a..0085316 100644
--- a/ir/libcore/lc_opts.h
+++ b/ir/libcore/lc_opts.h
@@ -90,13 +90,6 @@ typedef char lc_opt_str_t[];
lc_opt_entry_t *lc_opt_root_grp(void);
/**
- * Check, if a group is the root group
- * @param ent The entry to check for.
- * @return 1, if the entry is the root group, 0 otherwise.
- */
-int lc_opt_grp_is_root(const lc_opt_entry_t *ent);
-
-/**
* Get an option group.
* If the group is not already present, it is created.
* @param parent The parent group to look in.