aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-02-08 20:22:03 +1000
committerGravatar axel <axel@liljencrantz.se>2006-02-08 20:22:03 +1000
commit1cb9b6574419a51de446a36b26c78a0353184e8e (patch)
tree44680c3b4318c984add2fc4a5012dea302401f91
parent35dde5de15be1fa36d42c995c82ca5f083e99225 (diff)
Fis function signature for a few functions in parser.c
darcs-hash:20060208102203-ac50b-5e81c6580302ca3a1cee0d03f179b5d75ff61be3.gz
-rw-r--r--parser.c4
-rw-r--r--parser.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/parser.c b/parser.c
index 1c13cfc1..2c8789fe 100644
--- a/parser.c
+++ b/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 ) ||
diff --git a/parser.h b/parser.h
index 51c5b715..3542b8f0 100644
--- a/parser.h
+++ b/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'.