diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-21 18:15:32 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-21 18:15:32 +0000 |
commit | d2afef13c283c7ea0f551ddfe966651b63ad6700 (patch) | |
tree | 2fe3b15a40776dd276ab2afbd0dc1618b68c3ddf /gdb/gdb_obstack.h | |
parent | 10f0c4bbfa440916bce5d7407fd2b7447db31ef6 (diff) | |
download | gdb-d2afef13c283c7ea0f551ddfe966651b63ad6700.zip gdb-d2afef13c283c7ea0f551ddfe966651b63ad6700.tar.gz gdb-d2afef13c283c7ea0f551ddfe966651b63ad6700.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/gdb_obstack.h')
-rw-r--r-- | gdb/gdb_obstack.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |