summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-28 11:26:13 +0100
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-28 17:30:25 +0100
commiteabba1f07165ce0dc1204b4f0ec2c6ef9fd7a1ab (patch)
tree2dde84c57359e1027aa97db940c3c50b2dddd421
parent34c3818bd7283e5ea902adc80fc5f28890a83d90 (diff)
downloadsubsurface-eabba1f07165ce0dc1204b4f0ec2c6ef9fd7a1ab.tar.gz
cleanup: correct signature and declare extern
clear_vpmb_state() was declared with incorrect signature, and all functios in this change are extern, so declare them as such. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
-rw-r--r--core/dive.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/core/dive.h b/core/dive.h
index 880bcbfe4..6b6330790 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -940,15 +940,13 @@ struct decostop {
int depth;
int time;
};
-bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, int timestep, struct decostop *decostoptable, struct deco_state **cached_datap, bool is_planner, bool show_disclaimer);
-void calc_crushing_pressure(struct deco_state *ds, double pressure);
-void vpmb_start_gradient(struct deco_state *ds);
-void clear_vpmb_state();
-void printdecotable(struct decostop *table);
-
-void delete_single_dive(int idx);
+extern bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, int timestep, struct decostop *decostoptable, struct deco_state **cached_datap, bool is_planner, bool show_disclaimer);
+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 printdecotable(struct decostop *table);
-struct event *get_next_event(struct event *event, const char *name);
+extern struct event *get_next_event(struct event *event, const char *name);
static inline struct gasmix *get_gasmix(struct dive *dive, struct divecomputer *dc, int time, struct event **evp, struct gasmix *gasmix)
{