diff options
Diffstat (limited to 'parser_keywords.h')
-rw-r--r-- | parser_keywords.h | 10 |
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 |