diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-03-14 20:37:19 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-04-09 11:29:43 -0700 |
commit | 5afe1a53d8c662f26de048c8d954be323b96026b (patch) | |
tree | 0a45d68019e94160f2d402c34334a73c1bafcd5f /core/plannernotes.c | |
parent | 36249f27802540e541bae132a7b644b4a8a2f148 (diff) | |
download | subsurface-5afe1a53d8c662f26de048c8d954be323b96026b.tar.gz |
Cleanup: Move *_loc formatting functions into new format.cpp file
qthelper.cpp is already quite voluminous. Move the recently
introduced localized versions of (v)snprintf() and put_format()
into their own translation unit.
Moreover, adopt C-style semantics for asprintf_loc(). This function
will be used to remove fixed-size buffers in core/plannernotes.c.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/plannernotes.c')
-rw-r--r-- | core/plannernotes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/plannernotes.c b/core/plannernotes.c index 96a1f1b9c..d7c0de898 100644 --- a/core/plannernotes.c +++ b/core/plannernotes.c @@ -16,6 +16,7 @@ #include "gettext.h" #include "libdivecomputer/parser.h" #include "qthelper.h" +#include "format.h" #include "version.h" int diveplan_duration(struct diveplan *diveplan) |