mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Fis function signature for a few functions in parser.c
darcs-hash:20060208102203-ac50b-5e81c6580302ca3a1cee0d03f179b5d75ff61be3.gz
This commit is contained in:
parent
35dde5de15
commit
1cb9b65744
2 changed files with 3 additions and 3 deletions
4
parser.c
4
parser.c
|
@ -470,7 +470,7 @@ int parser_is_subcommand( const wchar_t *cmd )
|
|||
Test if the specified string is command that opens a new block
|
||||
*/
|
||||
|
||||
static int parser_is_block( wchar_t *word)
|
||||
static int parser_is_block( const wchar_t *word)
|
||||
{
|
||||
return contains_str( word,
|
||||
L"for",
|
||||
|
@ -482,7 +482,7 @@ static int parser_is_block( wchar_t *word)
|
|||
(void *)0 );
|
||||
}
|
||||
|
||||
int parser_is_reserved( wchar_t *word)
|
||||
int parser_is_reserved( const wchar_t *word)
|
||||
{
|
||||
return parser_is_block(word) ||
|
||||
parser_is_subcommand( word ) ||
|
||||
|
|
2
parser.h
2
parser.h
|
@ -257,7 +257,7 @@ int parser_is_subcommand( const wchar_t *cmd );
|
|||
\param word The command name to test
|
||||
\return 1 of the command parameter is a command, 0 otherwise
|
||||
*/
|
||||
int parser_is_reserved( wchar_t *word );
|
||||
int parser_is_reserved( const wchar_t *word );
|
||||
|
||||
/**
|
||||
Returns a string describing the current parser pisition in the format 'FILENAME (line LINE_NUMBER): LINE'.
|
||||
|
|
Loading…
Reference in a new issue