X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=dive.h;h=fc458d04d4292df0a36bf99428c84b66c169aad2;hb=515a9171523f7d8aa85f2caab262ba7d6320c33c;hp=1927da7215a68e69ece2ce062cb58e61b6914bd9;hpb=682135838ff313594c7f67fabd9be8f88a33883b;p=ext%2Fsubsurface.git diff --git a/dive.h b/dive.h index 1927da7..fc458d0 100644 --- a/dive.h +++ b/dive.h @@ -86,6 +86,8 @@ typedef struct { pressure_t start, end; } cylinder_t; +extern double get_depth_units(unsigned int mm, int *frac, const char **units); + static inline double mm_to_feet(int mm) { return mm * 0.00328084; @@ -242,4 +244,7 @@ extern int open_import_file_dialog(char *filterpattern, char *filtertext, const char *weekday(int wday); const char *monthname(int mon); +#define UTF8_DEGREE "\xc2\xb0" +#define UTF8_SUBSCRIPT_2 "\xe2\x82\x82" + #endif /* DIVE_H */