mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
398cc2b639
The last use of these functions was removed in ae299d5e66
.
And that's a good thing, because snprintf-style interfaces
make zero sense in times of variable-length character
encodings.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
18 lines
482 B
C++
18 lines
482 B
C++
#ifndef FORMAT_H
|
|
#define FORMAT_H
|
|
|
|
#ifdef __GNUC__
|
|
#define __printf(x, y) __attribute__((__format__(__printf__, x, y)))
|
|
#else
|
|
#define __printf(x, y)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
#include <QString>
|
|
__printf(1, 2) QString qasprintf_loc(const char *cformat, ...);
|
|
__printf(1, 0) QString vqasprintf_loc(const char *cformat, va_list ap);
|
|
__printf(1, 2) std::string casprintf_loc(const char *cformat, ...);
|
|
__printf(1, 2) std::string format_string_std(const char *fmt, ...);
|
|
#endif
|
|
|
|
#endif
|