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>
This commit is contained in:
Berthold Stoeger 2018-03-14 20:37:19 +01:00 committed by Dirk Hohndel
parent 36249f2780
commit 5afe1a53d8
8 changed files with 448 additions and 405 deletions

View file

@ -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)