]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/macroexp.h
gdb: make macro_expand_next return a gdb::unique_xmalloc_ptr<char>
[thirdparty/binutils-gdb.git] / gdb / macroexp.h
index ec992f22796ddaccb727d2ebbc5cc06ca040047b..511991cacd20720df59ea57791ff6d14d2d83712 100644 (file)
@@ -68,7 +68,8 @@ gdb::unique_xmalloc_ptr<char> macro_expand_once (const char *source,
    much have to do tokenization to find the end of the string that
    needs to be macro-expanded.  Our C/C++ tokenizer isn't really
    designed to be called by anything but the yacc parser engine.  */
-char *macro_expand_next (const char **lexptr, const macro_scope &scope);
+gdb::unique_xmalloc_ptr<char> macro_expand_next (const char **lexptr,
+                                                const macro_scope &scope);
 
 /* Functions to classify characters according to cpp rules.  */