diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 7cca925b9..6ce01ea94 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -950,6 +950,8 @@ int bb_putchar(int ch) FAST_FUNC; | |||
| 950 | int bb_putchar_stderr(char ch) FAST_FUNC; | 950 | int bb_putchar_stderr(char ch) FAST_FUNC; |
| 951 | int fputs_stdout(const char *s) FAST_FUNC; | 951 | int fputs_stdout(const char *s) FAST_FUNC; |
| 952 | char *xasprintf(const char *format, ...) __attribute__ ((format(printf, 1, 2))) FAST_FUNC RETURNS_MALLOC; | 952 | char *xasprintf(const char *format, ...) __attribute__ ((format(printf, 1, 2))) FAST_FUNC RETURNS_MALLOC; |
| 953 | char *xasprintf_and_free(char *allocated, const char *format, ...) __attribute__ ((format(printf, 2, 3))) FAST_FUNC RETURNS_MALLOC; | ||
| 954 | #define xasprintf_inplace(allocated, ...) ((allocated) = xasprintf_and_free((allocated), __VA_ARGS__)) | ||
| 953 | char *auto_string(char *str) FAST_FUNC; | 955 | char *auto_string(char *str) FAST_FUNC; |
| 954 | // gcc-4.1.1 still isn't good enough at optimizing it | 956 | // gcc-4.1.1 still isn't good enough at optimizing it |
| 955 | // (+200 bytes compared to macro) | 957 | // (+200 bytes compared to macro) |
