* contrib/ari/gdb_ari.sh: Remove rules for xasprintf and

xvasprintf.
	* common/common-utils.c (xasprintf, xvasprintf): Remove.
	* common/common-utils.h (xasprintf, xvasprintf): Remove.
This commit is contained in:
Tom Tromey 2012-11-29 17:23:18 +00:00
parent cdde3dfbda
commit a93478eab4
4 changed files with 7 additions and 43 deletions

View file

@ -43,13 +43,6 @@ char *xstrprintf (const char *format, ...) ATTRIBUTE_PRINTF (1, 2);
char *xstrvprintf (const char *format, va_list ap)
ATTRIBUTE_PRINTF (1, 0);
/* Like asprintf/vasprintf but get an internal_error if the call
fails. */
void xasprintf (char **ret, const char *format, ...)
ATTRIBUTE_PRINTF (2, 3);
void xvasprintf (char **ret, const char *format, va_list ap)
ATTRIBUTE_PRINTF (2, 0);
/* Like snprintf, but throw an error if the output buffer is too small. */
int xsnprintf (char *str, size_t size, const char *format, ...)
ATTRIBUTE_PRINTF (3, 4);