From d29c929e444d69ea7d4ce146f67f4c8df36baa95 Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Thu, 25 Oct 2018 12:38:34 +0300 Subject: Don't forward declare enumerations --- src/actionparser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/actionparser.h') diff --git a/src/actionparser.h b/src/actionparser.h index def4c8f..6fa6136 100644 --- a/src/actionparser.h +++ b/src/actionparser.h @@ -29,7 +29,6 @@ X(SEARCH) \ X(HELP) -typedef enum ParseErrors ParseError; enum ParseErrors { PERR_NOERR = 0, #define X(ACTION) \ @@ -38,8 +37,8 @@ enum ParseErrors { #undef X PERR_UNKONW_ACTION, }; +typedef enum ParseErrors ParseError; -typedef enum CkActions CkAction; enum CkActions { CK_WRONG_ACTION, #define X(ACTION) \ @@ -47,14 +46,15 @@ enum CkActions { CK_ACTIONS #undef X }; +typedef enum CkActions CkAction; -typedef enum ActionParserResults ActionParseResult; enum ActionParserResults { APR_OK, APR_ERR, APR_HELP, APR_VERSION }; +typedef enum ActionParserResults ActionParseResult; typedef struct UserOptions UserOpt; struct UserOptions { -- cgit v1.2.3