Fis function signature for a few functions in parser.c

darcs-hash:20060208102203-ac50b-5e81c6580302ca3a1cee0d03f179b5d75ff61be3.gz
This commit is contained in:
axel 2006-02-08 20:22:03 +10:00
parent 35dde5de15
commit 1cb9b65744
2 changed files with 3 additions and 3 deletions

View file

@ -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 ) ||

View file

@ -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'.