diff options
author | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-10-25 12:38:34 +0300 |
---|---|---|
committer | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-10-25 12:38:34 +0300 |
commit | d29c929e444d69ea7d4ce146f67f4c8df36baa95 (patch) | |
tree | 7f79ce61f0826b151ee4a1108c4b307afc953d15 /src/actions.h | |
parent | 041274604961bc5633c70f9c3db90f46117c508e (diff) | |
download | ck-d29c929e444d69ea7d4ce146f67f4c8df36baa95.tar.gz ck-d29c929e444d69ea7d4ce146f67f4c8df36baa95.tar.bz2 ck-d29c929e444d69ea7d4ce146f67f4c8df36baa95.zip |
Don't forward declare enumerations
Diffstat (limited to 'src/actions.h')
-rw-r--r-- | src/actions.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/actions.h b/src/actions.h index dcc6a23..69c5616 100644 --- a/src/actions.h +++ b/src/actions.h @@ -25,12 +25,12 @@ CK_ACTIONS #undef X -typedef enum AddOptErrors AddOptErr; enum AddOptErrors { ADD_NO_ERR = 0, ADD_ERR_WRONG_CONFIG, ADD_ERR_WRONG_FLAGS }; +typedef enum AddOptErrors AddOptErr; typedef struct AddOptions AddOpt; struct AddOptions { @@ -41,12 +41,12 @@ struct AddOptions { AddOptErr err; }; -typedef enum DelErrors DelErr; enum DelErrors { DEL_NO_ERR = 0, DEL_ERR_WRONG_PATH, DEL_ERR_WRONG_ARGS }; +typedef enum DelErrors DelErr; typedef struct DelOptions DelOpt; struct DelOptions { @@ -55,7 +55,6 @@ struct DelOptions { DelErr err; }; -typedef enum ListTypes ListType; enum ListTypes { LT_PATH, LT_PROGRAM, @@ -63,13 +62,14 @@ enum ListTypes { LT_CKCONF, LT_PROG_CONFS }; +typedef enum ListTypes ListType; -typedef enum ListShowTypes ListShowType; enum ListShowTypes { LST_PLAIN, LST_LISP, LST_PYTHON, }; +typedef enum ListShowTypes ListShowType; typedef struct ListOptions ListOpt; struct ListOptions { |