From e2937f06146f74a527a04ac39e631dd040277e7f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 4 Jun 2019 18:34:54 +0200 Subject: 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 --- core/deco.h | 4 ++++ core/planner.c | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'core') 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 -- cgit v1.2.3-70-g09d2