summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-01-09 10:43:28 +0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-09 15:48:22 +0800
commit3734bb9068d4b66fa76b0e13a027b1a8497ae27f (patch)
treeef182f21c76dbbd969ec24fe3df3c40bdc7f3fc7 /dive.h
parenta79ddde1b9b4d2149c0e2a34a4f63a6ab5ae176d (diff)
downloadsubsurface-3734bb9068d4b66fa76b0e13a027b1a8497ae27f.tar.gz
Add and use 'string_to_fraction()' helper converter function
This matches the pattern of unit conversion, and will allow us to remove all the code that uses the old complex "CHANGED()" macro that tries to remove units or percent signs. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> 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 d1f9797fe..2f800c5e5 100644
--- a/dive.h
+++ b/dive.h
@@ -803,6 +803,7 @@ extern weight_t string_to_weight(const char *str);
extern depth_t string_to_depth(const char *str);
extern pressure_t string_to_pressure(const char *str);
extern volume_t string_to_volume(const char *str, pressure_t workp);
+extern fraction_t string_to_fraction(const char *str);
#include "pref.h"