Skip to content

Commit b2dc711

Browse files
committed
readtags,refactor: move the enum representing the action types out of ActionSpec struct
Signed-off-by: Masatake YAMATO <[email protected]>
1 parent 159e846 commit b2dc711

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

extra-cmds/readtags-cmd.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,17 @@ struct inputSpec {
5050
bool indirect;
5151
};
5252

53-
struct actionSpec {
54-
enum {
53+
enum actionType {
5554
ACTION_NONE,
5655
ACTION_FIND = 1 << 0,
5756
ACTION_LIST = 1 << 1,
5857
ACTION_LIST_PTAGS = 1 << 2,
5958
ACTION_LIST_INCLUDED = 1 << 3,
6059
ACTION_AGGREGATE = 1 << 4,
61-
} action;
60+
};
61+
62+
struct actionSpec {
63+
enum actionType action;
6264
const char *name; /* for ACTION_FIND */
6365
bool canonicalizing;
6466
struct canonWorkArea canon;

0 commit comments

Comments
 (0)