From 93ecad1b0413645ba59ffe2e50c3636d8673ccb5 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 12 Feb 2021 17:39:46 +0100 Subject: 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 --- core/deco.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/deco.h') diff --git a/core/deco.h b/core/deco.h index 29a492c93..f8aa73abd 100644 --- a/core/deco.h +++ b/core/deco.h @@ -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); -- cgit v1.2.3-70-g09d2