nicer -h output

git-svn-id: file:///svn/unbound/trunk@1562 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2009-03-27 13:09:00 +00:00
parent 7dcca025f4
commit 868df9f584
3 changed files with 20 additions and 6 deletions
+6 -3
View File
@@ -114,10 +114,12 @@ const char**
module_list_avail(void)
{
/* these are the modules available */
static const char* names[] = {"iterator", "validator",
static const char* names[] = {
#ifdef WITH_PYTHONMODULE
"python",
#endif
"validator",
"iterator",
NULL};
return names;
}
@@ -129,11 +131,12 @@ typedef struct module_func_block* (*fbgetfunctype)(void);
static fbgetfunctype*
module_funcs_avail(void)
{
static struct module_func_block* (*fb[])(void) =
{&iter_get_funcblock, &val_get_funcblock,
static struct module_func_block* (*fb[])(void) = {
#ifdef WITH_PYTHONMODULE
&pythonmod_get_funcblock,
#endif
&val_get_funcblock,
&iter_get_funcblock,
NULL};
return fb;
}