aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser_keywords.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-30 09:46:33 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-30 09:46:33 -0800
commit8e4e30d266dd662b7603bbbf7be175ef49848367 (patch)
treefd3cd7562275d9a41492d1e9199eb27c8b41a5fd /parser_keywords.h
parentf988dcd6f99dc2a38917ad7c0a0630e0e4de2e2d (diff)
Migrate functions like parser_keywords_is_block to wcstring
Diffstat (limited to 'parser_keywords.h')
-rw-r--r--parser_keywords.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/parser_keywords.h b/parser_keywords.h
index e8212334..c2cc15d9 100644
--- a/parser_keywords.h
+++ b/parser_keywords.h
@@ -23,7 +23,7 @@ enum
Check if the specified argument is a switch. Return ARG_SWITCH if yes,
ARG_NON_SWITCH if no and ARG_SKIP if the argument is '--'
*/
-int parser_keywords_is_switch( const wchar_t *cmd );
+bool parser_keywords_is_switch( const wcstring &cmd );
/**
@@ -33,7 +33,7 @@ int parser_keywords_is_switch( const wchar_t *cmd );
\return 1 of the command parameter is a command, 0 otherwise
*/
-int parser_keywords_is_subcommand( const wchar_t *cmd );
+bool parser_keywords_is_subcommand( const wcstring &cmd );
/**
Tests if the specified command is a reserved word, i.e. if it is
@@ -44,20 +44,20 @@ int parser_keywords_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_keywords_is_reserved( const wchar_t *word );
+bool parser_keywords_is_reserved( const wcstring &word );
/**
Test if the specified string is command that opens a new block
*/
-int parser_keywords_is_block( const wchar_t *word);
+bool parser_keywords_is_block( const wcstring &word);
/**
Check if the specified command is one of the builtins that cannot
have arguments, any followin argument is interpreted as a new
command
*/
-int parser_keywords_skip_arguments( const wchar_t *cmd );
+bool parser_keywords_skip_arguments( const wcstring &cmd );
#endif