diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-04-29 12:41:25 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-04-29 12:41:25 +0300 |
commit | 25ccc84ac00a7b3975dfdb0cc415522ca7793f0f (patch) | |
tree | f732a005ddac7ecfbe1efaf8948dc61f5b706e95 /src/actionparser.h | |
parent | 0a5257ea63cce0cebc93eb71e51dbbb3eb14a9a3 (diff) | |
download | ck-25ccc84ac00a7b3975dfdb0cc415522ca7793f0f.tar.gz ck-25ccc84ac00a7b3975dfdb0cc415522ca7793f0f.tar.bz2 ck-25ccc84ac00a7b3975dfdb0cc415522ca7793f0f.zip |
Styling and nitpicks
Diffstat (limited to 'src/actionparser.h')
-rw-r--r-- | src/actionparser.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/actionparser.h b/src/actionparser.h index 3defde8..6473cb9 100644 --- a/src/actionparser.h +++ b/src/actionparser.h @@ -15,7 +15,7 @@ * procedures. * * Keeps track of what error occured where and provides - * printParserHelp() and printParserError() functions + * print_parser_help() and print_parser_error() functions * to notify the user * * -------------------------------------------------------------------------- */ @@ -34,7 +34,7 @@ typedef enum ParseErrors ParseError; enum ParseErrors { PERR_NOERR = 0, -#define X(ACTION) \ +#define X(ACTION) \ PERR_##ACTION##_WRONG, CK_ACTIONS #undef X @@ -50,11 +50,11 @@ enum CkActions { #undef X }; -typedef enum OptParserResults ParseResult; -enum OptParserResults { - OPR_OK, - OPR_ERR, - OPR_HELP +typedef enum ActionParserResults ActionParseResult; +enum ActionParserResults { + APR_OK, + APR_ERR, + APR_HELP }; typedef struct UserOptions UserOpt; @@ -66,9 +66,9 @@ struct UserOptions { char *argv[10]; // action's options }; -extern ParseResult parseAction(int argc, char* argv[], UserOpt *opt); -extern void printParserError(); -extern void printParserHelp(); +extern ActionParseResult parse_action(int argc, char* argv[], UserOpt *opt); +extern void print_parser_error(); +extern void print_parser_help(); extern void free_user_opt(UserOpt *opt); #endif // ACTIONPARSER_H |