diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-11-20 02:06:19 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-11-20 02:06:19 +0000 |
commit | 74b350391da0cdf03d49227aef2e188894d42894 (patch) | |
tree | d2750ad6ee113e76a19b0f625bdf053c04f8346f /gdb/defs.h | |
parent | 6546e8796ed004ab4bb1a2f315531e8b03b1b15e (diff) | |
download | gdb-74b350391da0cdf03d49227aef2e188894d42894.tar.gz |
Replace asprintf() / vasprintf() with xasprintf() xvasprintf().
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h index dd788e62662..63f8345dea4 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -835,6 +835,11 @@ extern PTR xmmalloc (PTR, long); extern PTR xmrealloc (PTR, PTR, long); #endif +/* Like asprintf/vasprintf but get an internal_error if the call + fails. */ +extern void xasprintf (char **ret, const char *format, ...) ATTR_FORMAT (printf, 2, 3); +extern void xvasprintf (char **ret, const char *format, va_list ap); + extern int parse_escape (char **); /* Message to be printed before the error message, when an error occurs. */ |