From 25ccc84ac00a7b3975dfdb0cc415522ca7793f0f Mon Sep 17 00:00:00 2001 From: gramanas Date: Sun, 29 Apr 2018 12:41:25 +0300 Subject: Styling and nitpicks --- src/actionparser.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/actionparser.h') 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 -- cgit v1.2.3