]> git.tdb.fi Git - ext/subsurface.git/blobdiff - dive.h
Reinstate the main window title
[ext/subsurface.git] / dive.h
diff --git a/dive.h b/dive.h
index bbc5c67ae36413fead1c033f136e7685aa001d6c..109d0c57da1a984e59aa03dd0792c3f6ac258276 100644 (file)
--- a/dive.h
+++ b/dive.h
@@ -86,9 +86,14 @@ typedef struct {
        pressure_t start, end;
 } cylinder_t;
 
+static inline double mm_to_feet(int mm)
+{
+       return mm * 0.00328084;
+}
+
 static inline int to_feet(depth_t depth)
 {
-       return depth.mm * 0.00328084 + 0.5;
+       return mm_to_feet(depth.mm) + 0.5;
 }
 
 static double mkelvin_to_C(int mkelvin)
@@ -221,4 +226,7 @@ extern void update_air_info(char *buffer);
 
 #define DIVE_ERROR_PARSE 1
 
+const char *weekday(int wday);
+const char *monthname(int mon);
+
 #endif /* DIVE_H */