aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin_help.hdr
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-09-20 23:26:39 +1000
committerGravatar axel <axel@liljencrantz.se>2005-09-20 23:26:39 +1000
commit149594f974350bb364a76c73b91b1d5ffddaa1fa (patch)
tree95650e9982d5fabe4bd805d94c5d700cbbc1ca7f /builtin_help.hdr
Initial revision
darcs-hash:20050920132639-ac50b-fa3b476891e1f5f67207cf4cc7bf623834cc5edc.gz
Diffstat (limited to 'builtin_help.hdr')
-rw-r--r--builtin_help.hdr36
1 files changed, 36 insertions, 0 deletions
diff --git a/builtin_help.hdr b/builtin_help.hdr
new file mode 100644
index 00000000..c2932562
--- /dev/null
+++ b/builtin_help.hdr
@@ -0,0 +1,36 @@
+/** \file builtin_help.c
+
+ Functions for printing usage information of builtin commands. This
+ file is automatically generated from the file builtin_help.hdr and
+ various help files in the doc_src directory.
+*/
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <strings.h>
+#include <wchar.h>
+
+#include "config.h"
+#include "util.h"
+#include "common.h"
+#include "builtin_help.h"
+
+/**
+ Hashtable storing the help text
+*/
+static hash_table_t tbl;
+
+char *builtin_help_get( wchar_t *cmd )
+{
+ return (char *)hash_get( &tbl, (void *)cmd );
+}
+
+void builtin_help_destroy()
+{
+ hash_destroy( &tbl );
+}
+
+
+void builtin_help_init()
+{
+ hash_init( &tbl, &hash_wcs_func, &hash_wcs_cmp );