From d2afef13c283c7ea0f551ddfe966651b63ad6700 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 21 Jan 2013 18:15:32 +0000 Subject: * gdb_obstack.h (obconcat): Move declaration here, from... * symfile.h (obconcat): ... here. * gdb_obstack.c: New file. (obconcat): Move from... * symfile.c (obconcat): ... here. * Makefile.in (SFILES): Add gdb_obstack.c. (COMMON_OBS): Add gdb_obstack.o. --- gdb/gdb_obstack.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/gdb_obstack.h') diff --git a/gdb/gdb_obstack.h b/gdb/gdb_obstack.h index 96196b7..1459ee9 100644 --- a/gdb/gdb_obstack.h +++ b/gdb/gdb_obstack.h @@ -51,4 +51,11 @@ #define obstack_grow_wstr(OBSTACK, WSTRING) \ obstack_grow (OBSTACK, WSTRING, sizeof (gdb_wchar_t) * gdb_wcslen (WSTRING)) +/* Concatenate NULL terminated variable argument list of `const char + *' strings; return the new string. Space is found in the OBSTACKP. + Argument list must be terminated by a sentinel expression `(char *) + NULL'. */ + +extern char *obconcat (struct obstack *obstackp, ...) ATTRIBUTE_SENTINEL; + #endif -- cgit v1.1