diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-24 16:22:51 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-24 16:22:51 +0000 |
commit | 655833ff71f5073c1caa5124df93dab5cb922008 (patch) | |
tree | e21bcbff0304890e7c01194049ad076d6a2a28eb /libiberty/functions.texi | |
parent | c041f442cd424f824022d3338380ecd4576a437d (diff) | |
download | gcc-655833ff71f5073c1caa5124df93dab5cb922008.tar.gz |
libiberty/ChangeLog:
* xasprintf.c: New file.
* Makefile.in (CFILES): Add xasprintf.c.
(REQUIRED_OFILES): Add xasprintf.$(objext).
(xasprintf.$(objext)): New target.
* functions.texi: Regenerate.
include/ChangeLog:
* libiberty.h (xasprintf): Declare.
gcc/ChangeLog:
* gengtype.h (xasprintf): Remove declaration.
* gengtype.c (xasprintf): Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219060 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/functions.texi')
-rw-r--r-- | libiberty/functions.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libiberty/functions.texi b/libiberty/functions.texi index 39064b4166c..b5f4e809d06 100644 --- a/libiberty/functions.texi +++ b/libiberty/functions.texi @@ -1923,6 +1923,15 @@ if an error occurred while writing to FILE. @end deftypefn +@c xasprintf.c:31 +@deftypefn Replacement char* xasprintf (const char *@var{format}, ...) + +Print to allocated string without fail. If @code{xasprintf} fails, +this will print a message to @code{stderr} (using the name set by +@code{xmalloc_set_program_name}, if any) and then call @code{xexit}. + +@end deftypefn + @c xatexit.c:11 @deftypefun int xatexit (void (*@var{fn}) (void)) |