Skip to content

Commit

Permalink
Guard .tag; it helps keep structs tidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
katef committed Aug 25, 2024
1 parent d557943 commit 3efeec7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libfsm/clone.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ copy_capture_actions(struct fsm *dst, const struct fsm *src)
}

struct copy_end_ids_env {
#ifndef NDEBUG
char tag;
#endif
struct fsm *dst;
const struct fsm *src;
bool ok;
Expand Down
2 changes: 2 additions & 0 deletions src/libfsm/consolidate.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ struct mapping_closure {
};

struct consolidate_copy_capture_actions_env {
#ifndef NDEBUG
char tag;
#endif
struct fsm *dst;
size_t mapping_count;
const fsm_state_t *mapping;
Expand Down
2 changes: 2 additions & 0 deletions src/libfsm/determinise_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ struct reverse_mapping {
};

struct det_copy_capture_actions_env {
#ifndef NDEBUG
char tag;
#endif
struct fsm *dst;
struct reverse_mapping *reverse_mappings;
bool ok;
Expand Down
2 changes: 2 additions & 0 deletions src/libfsm/endids.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,9 @@ fsm_endid_get(const struct fsm *fsm, fsm_state_t end_state,
}

struct carry_env {
#ifndef NDEBUG
char tag;
#endif
struct fsm *dst;
fsm_state_t dst_state;
bool ok;
Expand Down
2 changes: 2 additions & 0 deletions src/libfsm/epsilons.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
#define DEF_CARRY_ENDIDS_COUNT 2

struct remap_env {
#ifndef NDEBUG
char tag;
#endif
bool ok;
const struct fsm_alloc *alloc;
struct state_set **rmap;
Expand Down
2 changes: 2 additions & 0 deletions src/libfsm/merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
#define LOG_MERGE_ENDIDS 0

struct copy_capture_env {
#ifndef NDEBUG
char tag;
#endif
bool ok;
struct fsm *dst;
};
Expand Down

0 comments on commit 3efeec7

Please sign in to comment.