aboutsummaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-13 15:03:25 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-13 23:02:00 -0800
commit0cde0eff103ec8742656c4cb167a0e6245293697 (patch)
tree14c2a60007c6c0c4abfe2ffc23c68eb5e4f0900c /dive.h
parent81603510b20f69247a80ac9e1b60f325b709a039 (diff)
downloadsubsurface-0cde0eff103ec8742656c4cb167a0e6245293697.tar.gz
Rewriting the error handling in planner.c
Printf is not a way to issue warnings and errors. This is a very late addition but seems necessary for a viable release of the planner. This also adds one artificial limit and two warnings: a) no dives deeper than 400m b) warning of potentially very long calculation times for dives longer than 3h (180min) before the ascent and dives deeper than 150m It also creates quite a number of new strings that need to be translated (and marks a few existing ones for translation as well). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 246521554..35becba07 100644
--- a/dive.h
+++ b/dive.h
@@ -599,6 +599,7 @@ extern void set_autogroup(gboolean value);
extern int total_weight(struct dive *);
#define DIVE_ERROR_PARSE 1
+#define DIVE_ERROR_PLAN 2
const char *weekday(int wday);
const char *monthname(int mon);