mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
9fb37ea27f
commit
93ecad1b04
6 changed files with 33 additions and 30 deletions
|
@ -65,7 +65,7 @@ extern double tissue_tolerance_calc(struct deco_state *ds, const struct dive *di
|
|||
extern void calc_crushing_pressure(struct deco_state *ds, double pressure);
|
||||
extern void vpmb_start_gradient(struct deco_state *ds);
|
||||
extern void clear_vpmb_state(struct deco_state *ds);
|
||||
extern void add_segment(struct deco_state *ds, double pressure, struct gasmix gasmix, int period_in_seconds, int setpoint, enum divemode_t divemode, int sac);
|
||||
extern void add_segment(struct deco_state *ds, double pressure, struct gasmix gasmix, int period_in_seconds, int setpoint, enum divemode_t divemode, int sac, bool in_planner);
|
||||
|
||||
extern double regressiona(const struct deco_state *ds);
|
||||
extern double regressionb(const struct deco_state *ds);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue