diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-02-12 17:39:46 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-02-17 07:26:55 -0800 |
commit | 93ecad1b0413645ba59ffe2e50c3636d8673ccb5 (patch) | |
tree | c6b7d2aef7fd8aafa2a0570ca1ffa3168d85f736 /core/divelist.h | |
parent | 9fb37ea27f757c76324f9a101a54133cedd71922 (diff) | |
download | subsurface-93ecad1b0413645ba59ffe2e50c3636d8673ccb5.tar.gz |
planner: pass in_planner argument to add_segment()
To remove reliance on global state, pass an "in_planner" argument
to add_segment(). Thus, calls to in_planner() can be removed.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.h')
-rw-r--r-- | core/divelist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divelist.h b/core/divelist.h index 12c897f8c..41b6b9492 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -26,7 +26,7 @@ extern struct dive_table dive_table; extern void sort_dive_table(struct dive_table *table); extern void update_cylinder_related_info(struct dive *); -extern int init_decompression(struct deco_state *ds, const struct dive *dive); +extern int init_decompression(struct deco_state *ds, const struct dive *dive, bool in_planner); /* divelist core logic functions */ extern void process_loaded_dives(); |