diff options
author | axel <axel@liljencrantz.se> | 2006-06-17 23:07:08 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-06-17 23:07:08 +1000 |
commit | 07ff8a6c03e9c232a285e8b4ebc22f11ae5963d7 (patch) | |
tree | dee6963874a0c36ec40401211b6ea67784be2c7d /builtin.h | |
parent | 9f10dd377ee08f9142fb52db1506392610606250 (diff) |
Documentation updates. Fixes a few formating bugs, adds various minor missing api documentation, fixes a few typos. Also fixes a few tiny code issues, mostly missing consts, etc
darcs-hash:20060617130708-ac50b-cc2ec5aa3e4bfb8e28d7b86441bfb4661f1dd7e7.gz
Diffstat (limited to 'builtin.h')
-rw-r--r-- | builtin.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -62,6 +62,9 @@ enum */ #define BUILTIN_FOR_ERR_IN _( L"%ls: Second argument must be 'in'\n" ) +/** + Error message when too many arguments are supplied to a builtin +*/ #define BUILTIN_ERR_TOO_MANY_ARGUMENTS _( L"%ls: Too many arguments\n" ) /** @@ -150,6 +153,11 @@ int builtin_count_args( wchar_t **argv ); void builtin_print_help( wchar_t *cmd, string_buffer_t *b ); +/** + Slightly kludgy function used with 'complete -C' in order to make + the commandline builtin operate on the string to complete instead + of operating on whatever is to be completed. +*/ const wchar_t *builtin_complete_get_temporary_buffer(); /** @@ -166,6 +174,6 @@ void builtin_wperror( const wchar_t *s); \param cmd The command for which to obtain help text */ -char *builtin_help_get( wchar_t *cmd ); +char *builtin_help_get( const wchar_t *cmd ); #endif |