mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
os: drop Xasprintf() and Xvasprintf()
The supported platforms already have asprintf() and vasprintf(), so there's no need for having our own implementation anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -49,23 +49,12 @@
|
||||
* on failure.
|
||||
*/
|
||||
extern _X_EXPORT int
|
||||
Xasprintf(char **ret, const char *_X_RESTRICT_KYWD fmt, ...)
|
||||
_X_ATTRIBUTE_PRINTF(2, 3);
|
||||
extern _X_EXPORT int
|
||||
Xvasprintf(char **ret, const char *_X_RESTRICT_KYWD fmt, va_list va)
|
||||
_X_ATTRIBUTE_PRINTF(2, 0);
|
||||
extern _X_EXPORT int
|
||||
XNFasprintf(char **ret, const char *_X_RESTRICT_KYWD fmt, ...)
|
||||
_X_ATTRIBUTE_PRINTF(2, 3);
|
||||
extern _X_EXPORT int
|
||||
XNFvasprintf(char **ret, const char *_X_RESTRICT_KYWD fmt, va_list va)
|
||||
_X_ATTRIBUTE_PRINTF(2, 0);
|
||||
|
||||
#if !defined(HAVE_ASPRINTF) && !defined(HAVE_VASPRINTF)
|
||||
#define asprintf Xasprintf
|
||||
#define vasprintf Xvasprintf
|
||||
#endif
|
||||
|
||||
/*
|
||||
* These functions provide a portable implementation of the linux kernel
|
||||
* scnprintf & vscnprintf routines that return the number of bytes actually
|
||||
|
||||
Reference in New Issue
Block a user