summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-06-04 18:34:54 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-06-19 13:11:10 -0700
commite2937f06146f74a527a04ac39e631dd040277e7f (patch)
treeec858fb27d9a83fc4f8e69a4d1ae99893a656ed7
parent5514047b43e3ade620050448ca0eb41928b88221 (diff)
downloadsubsurface-e2937f06146f74a527a04ac39e631dd040277e7f.tar.gz
Cleanup: move function declaration into header file
The function declarations of regressiona(), regressionb() and reset_regression() were given in an independent translation unit. Move them into the proper header file. To ensure consistent function signatures is the whole point of header files, after all. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--core/deco.h4
-rw-r--r--core/planner.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/core/deco.h b/core/deco.h
index 717aa94cf..a86ab1a47 100644
--- a/core/deco.h
+++ b/core/deco.h
@@ -12,6 +12,10 @@ extern int deco_allowed_depth(double tissues_tolerance, double surface_pressure,
double get_gf(struct deco_state *ds, double ambpressure_bar, const struct dive *dive);
+extern double regressiona();
+extern double regressionb();
+extern void reset_regression();
+
#ifdef __cplusplus
}
#endif
diff --git a/core/planner.c b/core/planner.c
index d75ce4ad6..e0c2ec667 100644
--- a/core/planner.c
+++ b/core/planner.c
@@ -35,10 +35,6 @@ static int decostoplevels_imperial[] = { 0, 3048, 6096, 9144, 12192, 15240, 1828
182880, 193040, 203200, 223520, 243840, 264160, 284480, 304800,
325120, 345440, 365760, 386080 };
-extern double regressiona();
-extern double regressionb();
-extern void reset_regression();
-
char *disclaimer;
int plot_depth = 0;
#if DEBUG_PLAN