diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-09 10:34:25 +0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-09 15:46:03 +0800 |
commit | a79ddde1b9b4d2149c0e2a34a4f63a6ab5ae176d (patch) | |
tree | daf8238add863b9b970ca9ce9ee678964a4ce0f1 /dive.h | |
parent | 39fb3b2c13d5d8383340f08dff893553111f6b7c (diff) | |
download | subsurface-a79ddde1b9b4d2149c0e2a34a4f63a6ab5ae176d.tar.gz |
Add unit-aware cylinder size string parserc
Whittling down on the string parsing that doesn't check user-specified
units. Still need to handle temperatures (and will do percentages to
match the pattern too), but this is getting us closer to always honoring
user-specified units.
With this you can say that you have a "10l" cylinder at "3000psi", and
it will do the right thing (it's basically a 72 cuft cylinder in
imperial measurements).
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -802,6 +802,7 @@ extern double strtod_flags(const char *str, const char **ptr, unsigned int flags 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); #include "pref.h" |