mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 03:13:37 +08:00
9ce93164bb
darcs-hash:20051220085746-ac50b-fb788faca5ee99e85074343ba30ee6de7fb13857.gz
38 lines
695 B
Plaintext
38 lines
695 B
Plaintext
/** \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 <sys/types.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 );
|